diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 655b60f114b..8177b580965 100644 --- a/tests/bootstrap.php +++ b/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();