Merge pull request #1418 from nextcloud/fix/cleanup-tests-bootstrap

chore(tests): Cleanup bootstrap.php to be forward-compatible
This commit is contained in:
Arne Hamann
2025-05-26 13:27:28 +02:00
committed by GitHub

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
/**
* Nextcloud - maps
*
@ -10,11 +12,11 @@
* @copyright Julien Veyssier 2019
*/
use OCP\App\IAppManager;
use OCP\Server;
require_once __DIR__ . '/../../../tests/bootstrap.php';
require_once __DIR__ . '/../../../lib/base.php';
require_once __DIR__ . '/../vendor/autoload.php';
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
\OC_App::loadApp('maps');
OC_Hook::clear();
Server::get(IAppManager::class)->loadApp('maps');