We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52978c4 commit 638d488Copy full SHA for 638d488
tests/bootstrap.php
@@ -6,13 +6,19 @@
6
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
7
* SPDX-License-Identifier: AGPL-3.0-or-later
8
*/
9
-define('PHPUNIT_RUN', 1);
+
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__ . '/../vendor/autoload.php';
19
20
require_once __DIR__ . '/../../../tests/autoload.php';
21
-\OC_App::loadApp('circles');
22
+Server::get(IAppManager::class)->loadApp('circles');
23
24
OC_Hook::clear();
0 commit comments