aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php')
-rw-r--r--tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php b/tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php
index b62f909c700e..2787826871c1 100644
--- a/tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php
+++ b/tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php
@@ -1,6 +1,5 @@
<?php
-use MediaWiki\MediaWikiServices;
use Psr\Log\NullLogger;
/**
@@ -95,7 +94,7 @@ class WfThumbIsStandardTest extends MediaWikiIntegrationTestCase {
* @dataProvider provideThumbParams
*/
public function testIsStandard( $message, $expected, $params ) {
- $handlers = MediaWikiServices::getInstance()->getMainConfig()->get( 'ParserTestMediaHandlers' );
+ $handlers = $this->getServiceContainer()->getMainConfig()->get( 'ParserTestMediaHandlers' );
$this->setService(
'MediaHandlerFactory',
new MediaHandlerFactory( new NullLogger(), $handlers )