mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-14 19:35:38 +00:00
CommentFormatterTest: Set ArticlePath in the test
Tests would fail if your wiki's config was different than this.
Change-Id: I148851a9d7b777f1fad5f17b01b835b0b9384a80
(cherry picked from commit cf9f11167d
)
This commit is contained in:
parent
be89908bd5
commit
a14474ed76
|
@ -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'] );
|
||||
|
|
|
@ -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'] );
|
||||
|
|
Loading…
Reference in a new issue