From 7c7c7cbec0121f0d0a0b9b9a11541c5c1a2abfa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 20 May 2025 09:44:40 +0200 Subject: [PATCH 1/2] chore(tests): Cleanup bootstrap.php to be forward-compatible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/bootstrap.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 216f1f551..c8f32f959 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,19 +1,22 @@ addValidRoot(OC::$SERVERROOT . '/tests'); - -// Fix for "Autoload path not allowed: .../firstrunwizard/*.php" -\OC_App::loadApp('firstrunwizard'); +Server::get(IAppManager::class)->loadApp('firstrunwizard'); OC_Hook::clear(); From fc4bbb34b189f0f289133be5ccee2ba0f1da7dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 20 May 2025 09:44:46 +0200 Subject: [PATCH 2/2] chore(tests): Do not clear hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/bootstrap.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index c8f32f959..327688ebf 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -18,5 +18,3 @@ require_once __DIR__ . '/../../../tests/autoload.php'; Server::get(IAppManager::class)->loadApp('firstrunwizard'); - -OC_Hook::clear();