aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php')
-rw-r--r--tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php b/tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php
index fbb05bf38b49..3e1503074d03 100644
--- a/tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php
+++ b/tests/phpunit/includes/libs/filebackend/fsfile/TempFSFileIntegrationTest.php
@@ -1,6 +1,5 @@
<?php
-use MediaWiki\MediaWikiServices;
use Wikimedia\TestingAccessWrapper;
/**
@@ -14,7 +13,7 @@ class TempFSFileIntegrationTest extends MediaWikiIntegrationTestCase {
*/
public function testServiceWiring() {
$this->setMwGlobals( 'wgTmpDirectory', '/hopefully invalid' );
- $factory = MediaWikiServices::getInstance()->getTempFSFileFactory();
+ $factory = $this->getServiceContainer()->getTempFSFileFactory();
$this->assertSame( '/hopefully invalid',
( TestingAccessWrapper::newFromObject( $factory ) )->tmpDirectory );
}