From 86857f2c12f6a2b7c0dd8fce112d374cd718c6cc Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 23 May 2025 20:14:37 +0200 Subject: [PATCH] test: Load all apps locally as well Signed-off-by: Joas Schilling --- tests/bootstrap.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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();