Merge pull request #53893 from nextcloud/fix/cleanup-loadapp-calls
commit
034246a1a9
@ -1,18 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use OCP\App\IAppManager;
|
||||||
|
use OCP\Server;
|
||||||
|
|
||||||
if (!defined('PHPUNIT_RUN')) {
|
if (!defined('PHPUNIT_RUN')) {
|
||||||
define('PHPUNIT_RUN', 1);
|
define('PHPUNIT_RUN', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../lib/base.php';
|
require_once __DIR__ . '/../../../../lib/base.php';
|
||||||
|
require_once __DIR__ . '/../../../../tests/autoload.php';
|
||||||
|
|
||||||
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
|
Server::get(IAppManager::class)->loadApp('dav');
|
||||||
|
|
||||||
\OC_App::loadApp('dav');
|
|
||||||
|
|
||||||
OC_Hook::clear();
|
|
||||||
|
|||||||
Loading…
Reference in New Issue