diff options
Diffstat (limited to 'apps/dav/tests/unit/bootstrap.php')
-rw-r--r-- | apps/dav/tests/unit/bootstrap.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/bootstrap.php b/apps/dav/tests/unit/bootstrap.php index 886a7f0b859..ee76bb6677b 100644 --- a/apps/dav/tests/unit/bootstrap.php +++ b/apps/dav/tests/unit/bootstrap.php @@ -1,18 +1,21 @@ <?php +declare(strict_types=1); + /** * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors * SPDX-FileCopyrightText: 2016 ownCloud, Inc. * SPDX-License-Identifier: AGPL-3.0-only */ + +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::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); - -\OC_App::loadApp('dav'); - -OC_Hook::clear(); +Server::get(IAppManager::class)->loadApp('dav'); |