File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 xsi:schemaLocation=" https://getpsalm.org/schema/config vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
1212 errorBaseline=" tests/psalm-baseline.xml"
1313 phpVersion=" 8.1"
14+ ensureOverrideAttribute=" false"
1415>
1516 <stubs >
1617 <file name =" tests/stub.phpstub" preloadClasses =" true" />
1718 </stubs >
1819 <projectFiles >
19- <directory name =" lib" />
20+ <directory name =" lib" />
2021 <ignoreFiles >
21- <directory name =" vendor" />
22+ <directory name =" vendor" />
2223 </ignoreFiles >
2324 </projectFiles >
2425 <extraFiles >
25- <directory name =" vendor" />
26+ <directory name =" vendor" />
2627 </extraFiles >
2728</psalm >
Original file line number Diff line number Diff line change 55 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
66 * SPDX-License-Identifier: AGPL-3.0-or-later
77 */
8+
9+ use OCP \App \IAppManager ;
10+
811if (!defined ('PHPUNIT_RUN ' )) {
912 define ('PHPUNIT_RUN ' , 1 );
1013}
1114
1215require_once __DIR__ . '/../../../lib/base.php ' ;
1316
14- if (!class_exists ('\PHPUnit\Framework\TestCase ' )) {
15- require_once ('PHPUnit/Autoload.php ' );
16- }
17- \OC_App::loadApp ('serverinfo ' );
17+ \OC ::$ server ->get (IAppManager::class)->loadApp ('serverinfo ' );
1818OC_Hook::clear ();
Original file line number Diff line number Diff line change 1717 <directory suffix =" .php" >../../serverinfo/tests</directory >
1818 </exclude >
1919 </source >
20- <testsuite name =" Serverinfo tests" >
20+ <testsuite name =" serverinfo tests" >
2121 <directory suffix =" Test.php" >.</directory >
2222 </testsuite >
2323</phpunit >
You can’t perform that action at this time.
0 commit comments