From: Leszek Manicki Date: Wed, 15 Jun 2016 09:03:18 +0000 (+0200) Subject: Use GenderCache service in ApiQueryWatchlistIntegrationTest X-Git-Tag: 1.31.0-rc.0~6575^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=e4e4236dbe37a08c3fa2dceaea4ff21e7cb70d80;p=lhc%2Fweb%2Fwiklou.git Use GenderCache service in ApiQueryWatchlistIntegrationTest Change-Id: I5190c8c91fa4994fcce850067fa7d2a01ccc4424 --- diff --git a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php index def9c5d8a2..898b58efba 100644 --- a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php +++ b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php @@ -229,7 +229,10 @@ class ApiQueryWatchlistIntegrationTest extends ApiTestCase { } private function getTitleFormatter() { - return new MediaWikiTitleCodec( Language::factory( 'en' ), GenderCache::singleton() ); + return new MediaWikiTitleCodec( + Language::factory( 'en' ), + MediaWikiServices::getInstance()->getGenderCache() + ); } private function getPrefixedText( LinkTarget $target ) {