test: Load all apps locally as well

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-05-23 20:14:37 +02:00
parent be0fbacfdf
commit 86857f2c12
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -16,8 +16,13 @@ require_once __DIR__ . '/autoload.php';
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);
// load all enabled apps
\OC_App::loadApps();
// load all apps
foreach (new \DirectoryIterator(__DIR__ . '/../apps/') as $file) {
if ($file->isDot()) {
continue;
}
\OC_App::loadApp($file->getFilename());
}
OC_Hook::clear();