From f07dc353effca20086115cb781eff340ef0de169 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 10 Jun 2025 09:22:03 +0200 Subject: [PATCH] chore(tests): cleanup bootstrap.php to be forward-compatible Signed-off-by: Richard Steinmetz --- tests/php/unit/bootstrap.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/php/unit/bootstrap.php b/tests/php/unit/bootstrap.php index 50b46b43bc..8823d7969c 100755 --- a/tests/php/unit/bootstrap.php +++ b/tests/php/unit/bootstrap.php @@ -1,17 +1,23 @@ addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); +require_once __DIR__ . '/../../../../../lib/base.php'; +require_once __DIR__ . '/../../../../../tests/autoload.php'; +require_once __DIR__ . '/../../../vendor/autoload.php'; -\OC_App::loadApp('calendar'); +Server::get(IAppManager::class)->loadApp('calendar'); OC_Hook::clear();