Skip to content

Commit 5141cfb

Browse files
committed
chore(tests): cleanup bootstrap.php to be forward-compatible
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 8d6d407 commit 5141cfb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/bootstrap.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<?php
22

33
declare(strict_types=1);
4+
45
/**
56
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
67
* SPDX-License-Identifier: AGPL-3.0-or-later
78
*/
89

910
use OCP\App\IAppManager;
11+
use OCP\Server;
1012

1113
if (!defined('PHPUNIT_RUN')) {
1214
define('PHPUNIT_RUN', 1);
1315
}
1416

1517
require_once __DIR__ . '/../../../lib/base.php';
18+
require_once __DIR__ . '/../../../tests/autoload.php';
1619

17-
\OC::$server->get(IAppManager::class)->loadApp('serverinfo');
18-
OC_Hook::clear();
20+
Server::get(IAppManager::class)->loadApp('serverinfo');

0 commit comments

Comments
 (0)