aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/content/CssContentHandlerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/content/CssContentHandlerTest.php')
-rw-r--r--tests/phpunit/includes/content/CssContentHandlerTest.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php b/tests/phpunit/includes/content/CssContentHandlerTest.php
index 728f01896c39..e3f99728aab8 100644
--- a/tests/phpunit/includes/content/CssContentHandlerTest.php
+++ b/tests/phpunit/includes/content/CssContentHandlerTest.php
@@ -1,5 +1,7 @@
<?php
+use MediaWiki\MainConfigNames;
+
class CssContentHandlerTest extends MediaWikiLangTestCase {
/**
@@ -7,9 +9,9 @@ class CssContentHandlerTest extends MediaWikiLangTestCase {
* @covers CssContentHandler::makeRedirectContent
*/
public function testMakeRedirectContent( $title, $expected ) {
- $this->setMwGlobals( [
- 'wgServer' => '//example.org',
- 'wgScript' => '/w/index.php',
+ $this->overrideConfigValues( [
+ MainConfigNames::Server => '//example.org',
+ MainConfigNames::Script => '/w/index.php',
] );
$ch = new CssContentHandler();
$content = $ch->makeRedirectContent( Title::newFromText( $title ) );