Skip to content

Commit 0009e5f

Browse files
committed
fix bootstrap.php for phpunit
Signed-off-by: Lukas Schaefer <[email protected]>
1 parent 66d93f4 commit 0009e5f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

tests/bootstrap.php

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

3+
declare(strict_types=1);
4+
35
/**
4-
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
5-
* SPDX-License-Identifier: AGPL-3.0-or-later
6+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-only
68
*/
79

810
use OCP\App\IAppManager;
911
use OCP\Server;
1012

11-
require_once __DIR__ . '/../../../tests/bootstrap.php';
13+
if (!defined('PHPUNIT_RUN')) {
14+
define('PHPUNIT_RUN', 1);
15+
}
16+
17+
require_once __DIR__ . '/../../../lib/base.php';
18+
require_once __DIR__ . '/../../../tests/autoload.php';
1219

13-
Server::get(IAppManager::class)->loadApps();
14-
OC_Hook::clear();
20+
Server::get(IAppManager::class)->loadApp('integration_openai');

0 commit comments

Comments
 (0)