test: Load all apps locally as well

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/48210/head
Joas Schilling 11 months ago
parent be0fbacfdf
commit 86857f2c12
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
  1. 9
      tests/bootstrap.php

@ -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();

Loading…
Cancel
Save