mirror of
https://github.com/nextcloud/maps.git
synced 2025-07-23 00:28:44 +00:00
Merge pull request #1418 from nextcloud/fix/cleanup-tests-bootstrap
chore(tests): Cleanup bootstrap.php to be forward-compatible
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user