diff --git a/tests/phpunit/IntegrationTestCase.php b/tests/phpunit/IntegrationTestCase.php index 40c3c78fd..88e88bf27 100644 --- a/tests/phpunit/IntegrationTestCase.php +++ b/tests/phpunit/IntegrationTestCase.php @@ -29,6 +29,7 @@ abstract class IntegrationTestCase extends MediaWikiIntegrationTestCase { // Consistent defaults for generating canonical URLs MainConfigNames::Server => 'https://example.org', MainConfigNames::CanonicalServer => 'https://example.org', + MainConfigNames::ArticlePath => '/wiki/$1', ] + $config ); $this->setUserLang( $config['wgContentLanguage'] ); $this->setContentLang( $config['wgContentLanguage'] ); diff --git a/tests/phpunit/integration/ApiDiscussionToolsPageInfoTest.php b/tests/phpunit/integration/ApiDiscussionToolsPageInfoTest.php index d2cc34aaa..d00a9a8c8 100644 --- a/tests/phpunit/integration/ApiDiscussionToolsPageInfoTest.php +++ b/tests/phpunit/integration/ApiDiscussionToolsPageInfoTest.php @@ -34,6 +34,7 @@ class ApiDiscussionToolsPageInfoTest extends ApiTestCase { // Data used for the tests assumes there are no variants for English. // Language variants are tested using other languages. MainConfigNames::UsePigLatinVariant => false, + MainConfigNames::ArticlePath => '/wiki/$1', ] + $config ); $this->setUserLang( $config['wgContentLanguage'] ); $this->setContentLang( $config['wgContentLanguage'] );