X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiQueryWatchlistIntegrationTest.php;h=2b08a81c2e8c99f8569380a5226f2c205481a850;hb=6a655e0e213337819bbe4619062b9078416724a5;hp=41ecd529442f285d6027858f56b88860dfffe335;hpb=0756849eb8450909d14dcb619307bdf07f0c7fcd;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php index 41ecd52944..2b08a81c2e 100644 --- a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php +++ b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php @@ -228,16 +228,8 @@ class ApiQueryWatchlistIntegrationTest extends ApiTestCase { } } - private function getTitleFormatter() { - return new MediaWikiTitleCodec( - Language::factory( 'en' ), - MediaWikiServices::getInstance()->getGenderCache() - ); - } - private function getPrefixedText( LinkTarget $target ) { - $formatter = $this->getTitleFormatter(); - return $formatter->getPrefixedText( $target ); + return MediaWikiServices::getInstance()->getTitleFormatter()->getPrefixedText( $target ); } private function cleanTestUsersWatchlist() {