aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/content/JavaScriptContentTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/content/JavaScriptContentTest.php')
-rw-r--r--tests/phpunit/includes/content/JavaScriptContentTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/phpunit/includes/content/JavaScriptContentTest.php b/tests/phpunit/includes/content/JavaScriptContentTest.php
index 0801d56451f8..05f1f11f79f7 100644
--- a/tests/phpunit/includes/content/JavaScriptContentTest.php
+++ b/tests/phpunit/includes/content/JavaScriptContentTest.php
@@ -1,7 +1,5 @@
<?php
-use MediaWiki\MediaWikiServices;
-
/**
* @group ContentHandler
* @group Database
@@ -196,7 +194,7 @@ class JavaScriptContentTest extends TextContentTest {
* @covers JavaScriptContent::matchMagicWord
*/
public function testMatchMagicWord() {
- $mw = MediaWikiServices::getInstance()->getMagicWordFactory()->get( "staticredirect" );
+ $mw = $this->getServiceContainer()->getMagicWordFactory()->get( "staticredirect" );
$content = $this->newContent( "#REDIRECT [[FOO]]\n__STATICREDIRECT__" );
$this->assertFalse(