From e737571a87563eb1fccd2f4f25b61c5237f54ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Wed, 23 Sep 2026 12:01:03 +0200 Subject: [PATCH] fix: Remove legacy method calls from tests/bootstrap.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/bootstrap.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 1fb07a015..f30ea3058 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,19 +1,18 @@ addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); -\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true); +define('PHPUNIT_RUN', 1); -OC_App::loadApp('logreader'); +require_once __DIR__ . '/../../../lib/base.php'; +require_once __DIR__ . '/../../../tests/autoload.php'; -OC_Hook::clear(); +Server::get(IAppManager::class)->loadApp('logreader');