diff options
Diffstat (limited to 'tests/phpunit/includes/content/WikitextContentTest.php')
-rw-r--r-- | tests/phpunit/includes/content/WikitextContentTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index de6dc0e43a44..d6e0becbd762 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -1,7 +1,6 @@ <?php use MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate; -use MediaWiki\MediaWikiServices; /** * @group ContentHandler @@ -228,7 +227,7 @@ just a test" * @covers WikitextContent::matchMagicWord */ public function testMatchMagicWord() { - $mw = MediaWikiServices::getInstance()->getMagicWordFactory()->get( "staticredirect" ); + $mw = $this->getServiceContainer()->getMagicWordFactory()->get( "staticredirect" ); $content = $this->newContent( "#REDIRECT [[FOO]]\n__STATICREDIRECT__" ); $this->assertTrue( $content->matchMagicWord( $mw ), "should have matched magic word" ); |