mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
test: Load all apps locally as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
be0fbacfdf
commit
86857f2c12
1 changed files with 7 additions and 2 deletions
|
|
@ -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…
Reference in a new issue