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.
2 parents e2577de + 1000343 commit 6e516b1Copy full SHA for 6e516b1
tests/bootstrap.php
@@ -1,17 +1,24 @@
1
<?php
2
+
3
+declare(strict_types=1);
4
5
/**
6
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
7
* SPDX-FileCopyrightText: 2014-2015 ownCloud, Inc.
8
* SPDX-License-Identifier: AGPL-3.0-or-later
9
*/
10
11
+use OCP\App\IAppManager;
12
+use OCP\Server;
13
14
if (!defined('PHPUNIT_RUN')) {
15
define('PHPUNIT_RUN', 1);
16
}
17
-require_once __DIR__.'/../../../lib/base.php';
18
+require_once __DIR__ . '/../../../tests/autoload.php';
19
20
+Server::get(IAppManager::class)->loadApp('richdocuments');
21
22
if (!class_exists('\PHPUnit\Framework\TestCase')) {
23
require_once('PHPUnit/Autoload.php');
24
-\OC_App::loadApp('richdocuments');
-OC_Hook::clear();
0 commit comments