aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
diff options
context:
space:
mode:
authorAryeh Gregor <ayg@aryeh.name>2018-08-05 16:00:56 +0300
committerAryeh Gregor <ayg@aryeh.name>2019-04-14 14:55:58 +0300
commit69ef837f41b213a4956d3e0e66c33da161033920 (patch)
tree0dcbf98c85e9fdddf22854d475fbeba71dcacdc9 /tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
parent79e1a48365d30b95884a8ce2f2efe3970e98ccf1 (diff)
downloadmediawikicore-69ef837f41b213a4956d3e0e66c33da161033920.tar.gz
mediawikicore-69ef837f41b213a4956d3e0e66c33da161033920.zip
Update MediaWikiTitleCodec to use NamespaceInfo
Depends-On: I759cde50e42020699138d32431c27428737f700f Change-Id: I57d77754288449ec54b039802adae05d56fa5563
Diffstat (limited to 'tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php b/tests/phpunit/includes/api/ApiQueryWatchlistIntegrationTest.php
index 41ecd529442f..2b08a81c2e8c 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() {