diff options
Diffstat (limited to 'tests/phpunit/includes/content/CssContentTest.php')
-rw-r--r-- | tests/phpunit/includes/content/CssContentTest.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/phpunit/includes/content/CssContentTest.php b/tests/phpunit/includes/content/CssContentTest.php index 408d24c6511c..bedb1361ee9a 100644 --- a/tests/phpunit/includes/content/CssContentTest.php +++ b/tests/phpunit/includes/content/CssContentTest.php @@ -1,5 +1,7 @@ <?php +use MediaWiki\MainConfigNames; + /** * @group ContentHandler * @group Database @@ -10,11 +12,12 @@ class CssContentTest extends TextContentTest { protected function setUp(): void { parent::setUp(); - $this->setMwGlobals( [ - 'wgTextModelsToParse' => [ + $this->overrideConfigValue( + MainConfigNames::TextModelsToParse, + [ CONTENT_MODEL_CSS, ] - ] ); + ); } public function newContent( $text ) { @@ -95,10 +98,10 @@ class CssContentTest extends TextContentTest { * @dataProvider provideGetRedirectTarget */ public function testGetRedirectTarget( $title, $text ) { - $this->setMwGlobals( [ - 'wgServer' => '//example.org', - 'wgScriptPath' => '/w', - 'wgScript' => '/w/index.php', + $this->overrideConfigValues( [ + MainConfigNames::Server => '//example.org', + MainConfigNames::ScriptPath => '/w', + MainConfigNames::Script => '/w/index.php', ] ); $content = new CssContent( $text ); $target = $content->getRedirectTarget(); |