diff options
Diffstat (limited to 'tests/phpunit/includes/parser/CoreParserFunctionsTest.php')
-rw-r--r-- | tests/phpunit/includes/parser/CoreParserFunctionsTest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/phpunit/includes/parser/CoreParserFunctionsTest.php b/tests/phpunit/includes/parser/CoreParserFunctionsTest.php index 60305b2c5ead..5fd21eaa9496 100644 --- a/tests/phpunit/includes/parser/CoreParserFunctionsTest.php +++ b/tests/phpunit/includes/parser/CoreParserFunctionsTest.php @@ -1,7 +1,5 @@ <?php -use MediaWiki\MediaWikiServices; - /** * @group Database * @covers CoreParserFunctions @@ -44,7 +42,7 @@ class CoreParserFunctionsTest extends MediaWikiLangTestCase { * @dataProvider provideTalkpagename */ public function testTalkpagename( $expected, $title ) { - $parser = MediaWikiServices::getInstance()->getParser(); + $parser = $this->getServiceContainer()->getParser(); $this->assertSame( $expected, CoreParserFunctions::talkpagename( $parser, $title ) ); } @@ -70,7 +68,7 @@ class CoreParserFunctionsTest extends MediaWikiLangTestCase { * @dataProvider provideSubjectpagename */ public function testSubjectpagename( $expected, $title ) { - $parser = MediaWikiServices::getInstance()->getParser(); + $parser = $this->getServiceContainer()->getParser(); $this->assertSame( $expected, CoreParserFunctions::subjectpagename( $parser, $title ) ); } |