From a63f4762d71629fdd91c9385c1b7a28bab912daf Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 10 Jun 2025 17:55:37 +0200 Subject: [PATCH] chore(tests): cleanup bootstrap.php to be forward-compatible Signed-off-by: Daniel Kesselberg --- tests/bootstrap.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 253b24f..16b8f4e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -7,12 +7,13 @@ */ use OCP\App\IAppManager; +use OCP\Server; if (!defined('PHPUNIT_RUN')) { define('PHPUNIT_RUN', 1); } require_once __DIR__ . '/../../../lib/base.php'; +require_once __DIR__ . '/../../../tests/autoload.php'; -\OC::$server->get(IAppManager::class)->loadApp('user_usage_report'); -OC_Hook::clear(); +Server::get(IAppManager::class)->loadApp('user_usage_report');