jenkins-bot has submitted this change and it was merged.

Change subject: Use GenderCache service in ApiQueryWatchlistIntegrationTest
......................................................................


Use GenderCache service in ApiQueryWatchlistIntegrationTest

Change-Id: I5190c8c91fa4994fcce850067fa7d2a01ccc4424
---
M tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Addshore: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php 
b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
index def9c5d..898b58e 100644
--- a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
+++ b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
@@ -229,7 +229,10 @@
        }
 
        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 ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/294441
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5190c8c91fa4994fcce850067fa7d2a01ccc4424
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <leszek.mani...@wikimedia.de>
Gerrit-Reviewer: Addshore <addshorew...@gmail.com>
Gerrit-Reviewer: WMDE-leszek <leszek.mani...@wikimedia.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to