We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6d407 commit 5141cfbCopy full SHA for 5141cfb
1 file changed
tests/bootstrap.php
@@ -1,18 +1,20 @@
1
<?php
2
3
declare(strict_types=1);
4
+
5
/**
6
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
7
* SPDX-License-Identifier: AGPL-3.0-or-later
8
*/
9
10
use OCP\App\IAppManager;
11
+use OCP\Server;
12
13
if (!defined('PHPUNIT_RUN')) {
14
define('PHPUNIT_RUN', 1);
15
}
16
17
require_once __DIR__ . '/../../../lib/base.php';
18
+require_once __DIR__ . '/../../../tests/autoload.php';
19
-\OC::$server->get(IAppManager::class)->loadApp('serverinfo');
-OC_Hook::clear();
20
+Server::get(IAppManager::class)->loadApp('serverinfo');
0 commit comments