aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/CommentStoreTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/CommentStoreTest.php')
-rw-r--r--tests/phpunit/includes/CommentStoreTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/CommentStoreTest.php b/tests/phpunit/includes/CommentStoreTest.php
index fae99f1498d8..973ed4493750 100644
--- a/tests/phpunit/includes/CommentStoreTest.php
+++ b/tests/phpunit/includes/CommentStoreTest.php
@@ -1,6 +1,5 @@
<?php
-use MediaWiki\MediaWikiServices;
use Wikimedia\Rdbms\IMaintainableDatabase;
use Wikimedia\ScopedCallback;
@@ -807,7 +806,7 @@ class CommentStoreTest extends MediaWikiLangTestCase {
* @param int $stage
*/
public function testInsertWithTempTableDeprecated( $stage ) {
- $lang = MediaWikiServices::getInstance()->getContentLanguage();
+ $lang = $this->getServiceContainer()->getContentLanguage();
$store = new class( $lang, $stage ) extends CommentStore {
protected const TEMP_TABLES = [
'ipb_reason' => [