File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ unittests:
8282integrationtests :
8383 ./scripts/run-app.sh " 32.0.0" 1
8484 composer install
85- ./vendor/bin/phpunit --bootstrap tests/integration/bootstrap.php tests/integration/ --testdox
85+ ./vendor/bin/phpunit -c tests/integration/phpunit.xml tests/integration/ --testdox
8686
8787# Run bats tests
8888.PHONY : bats
Original file line number Diff line number Diff line change 1111use PHPUnit \Framework \TestCase ;
1212use RuntimeException ;
1313
14- abstract class BaseIntegrationTest extends TestCase {
14+ abstract class IntegrationTestBase extends TestCase {
1515 protected string $ hostname ;
1616 protected string $ folderPrefix ;
1717 protected string $ testUser ;
@@ -28,7 +28,7 @@ protected function setUp(): void {
2828 parent ::setUp ();
2929
3030 // Load environment variables
31- $ this ->hostname = $ _ENV ['HOSTNAME ' ] ?? '127.0.0.1:8080 ' ;
31+ $ this ->hostname = $ _ENV ['NEXTCLOUD_HOSTNAME ' ] ?? '127.0.0.1:8080 ' ;
3232 $ this ->folderPrefix = $ _ENV ['FOLDER_PREFIX ' ] ?? './tmp/functionality-parallel ' ;
3333 $ this ->testUser = $ _ENV ['TESTUSER ' ] ?? 'testuser ' ;
3434 $ this ->testUserPassword = $ _ENV ['TESTUSER_PASSWORD ' ] ?? 'myfancysecurepassword234 ' ;
Original file line number Diff line number Diff line change 88
99use PHPUnit \Framework \Attributes \DataProvider ;
1010
11- require_once __DIR__ . '/BaseIntegrationTest .php ' ;
11+ require_once __DIR__ . '/IntegrationTestBase .php ' ;
1212
13- class SettingsControllerTest extends BaseIntegrationTest {
13+ class SettingsControllerTest extends IntegrationTestBase {
1414 public static function adminGetRouteProvider (): array {
1515 return [
1616 ['getAuthMethod ' ],
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
1212>
1313 <testsuite name =' G DATA Antivirus Integration Tests' >
1414 <directory suffix =' Test.php' >.</directory >
15- <exclude >BaseIntegrationTest.php</exclude >
1615 </testsuite >
1716 <php >
1817 <env name =" PHPUNIT_INTEGRATION_ENV" value =" true" />
You can’t perform that action at this time.
0 commit comments