aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/ExtraParserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/ExtraParserTest.php')
-rw-r--r--tests/phpunit/includes/ExtraParserTest.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/phpunit/includes/ExtraParserTest.php b/tests/phpunit/includes/ExtraParserTest.php
index 6fdff0480c96..ae41f9778468 100644
--- a/tests/phpunit/includes/ExtraParserTest.php
+++ b/tests/phpunit/includes/ExtraParserTest.php
@@ -1,7 +1,6 @@
<?php
use MediaWiki\Interwiki\ClassicInterwikiLookup;
-use MediaWiki\MediaWikiServices;
use Wikimedia\TestingAccessWrapper;
/**
@@ -26,7 +25,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
$this->setUserLang( 'en' );
$this->setContentLang( 'en' );
- $services = MediaWikiServices::getInstance();
+ $services = $this->getServiceContainer();
$contLang = $services->getContentLanguage();
@@ -274,7 +273,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
'wgInterwikiCache',
ClassicInterwikiLookup::buildCdbHash( $testInterwikis )
);
- MediaWikiServices::getInstance()->resetServiceForTesting(
+ $this->getServiceContainer()->resetServiceForTesting(
'InterwikiLookup'
);
Title::clearCaches();