From 6db3b3287f9da3514348c53d6b82b617679af004 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 20 Jul 2024 21:41:52 +0200 Subject: [PATCH] tests: Use LanguageFactory to create en language Bug: T343771 Change-Id: Id2423c87c17a2f357d5e1cfeef3aeb83b6ad9a0d --- tests/phpunit/integration/Parser/ParserEquivsetTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/integration/Parser/ParserEquivsetTest.php b/tests/phpunit/integration/Parser/ParserEquivsetTest.php index ba68df972..ebb251514 100644 --- a/tests/phpunit/integration/Parser/ParserEquivsetTest.php +++ b/tests/phpunit/integration/Parser/ParserEquivsetTest.php @@ -23,7 +23,6 @@ namespace MediaWiki\Extension\AbuseFilter\Tests\Integration\Parser; use EmptyBagOStuff; -use LanguageEn; use MediaWiki\Extension\AbuseFilter\AbuseFilterServices; use MediaWiki\Extension\AbuseFilter\Parser\FilterEvaluator; use MediaWiki\Extension\AbuseFilter\Variables\LazyVariableComputer; @@ -54,7 +53,7 @@ class ParserEquivsetTest extends MediaWikiIntegrationTestCase { private function getParser(): FilterEvaluator { // We're not interested in caching or logging; tests should call respectively setCache // and setLogger if they want to test any of those. - $contLang = new LanguageEn(); + $contLang = $this->getServiceContainer()->getLanguageFactory()->getLanguage( 'en' ); $cache = new EmptyBagOStuff(); $logger = new \Psr\Log\NullLogger(); $keywordsManager = AbuseFilterServices::getKeywordsManager();