Merge "Use GenderCache service in ApiQueryWatchlistIntegrationTest"
This commit is contained in:
commit
c13d8c8255
1 changed files with 4 additions and 1 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue