Skip to content

Commit 5041440

Browse files
authored
chore(tests): cleanup bootstrap.php to be forward-compatible
Ref nextcloud/server#52945 Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent b00ea5c commit 5041440

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/bootstrap.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
* SPDX-License-Identifier: AGPL-3.0-or-later
88
*/
99

10+
use OCP\App\IAppManager;
11+
use OCP\Server;
12+
1013
require_once __DIR__ . '/../../../lib/base.php';
14+
require_once __DIR__ . '/../../../tests/autoload.php';
1115
require_once __DIR__ . '/../vendor/autoload.php';
1216

13-
OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
14-
OC_App::loadApp('twofactor_webauthn');
17+
Server::get(IAppManager::class)->loadApp('twofactor_webauthn');

0 commit comments

Comments
 (0)