dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "WebStart: Avoid DB or uselang for nonwrite-api-promise-error message"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiQueryRecentChangesIntegrationTest.php
diff --git
a/tests/phpunit/includes/api/ApiQueryRecentChangesIntegrationTest.php
b/tests/phpunit/includes/api/ApiQueryRecentChangesIntegrationTest.php
index
a95d5c1
..
ff0e2e6
100644
(file)
--- a/
tests/phpunit/includes/api/ApiQueryRecentChangesIntegrationTest.php
+++ b/
tests/phpunit/includes/api/ApiQueryRecentChangesIntegrationTest.php
@@
-149,16
+149,8
@@
class ApiQueryRecentChangesIntegrationTest extends ApiTestCase {
return $response[0]['query']['recentchanges'];
}
return $response[0]['query']['recentchanges'];
}
- private function getTitleFormatter() {
- return new MediaWikiTitleCodec(
- Language::factory( 'en' ),
- MediaWikiServices::getInstance()->getGenderCache()
- );
- }
-
private function getPrefixedText( LinkTarget $target ) {
private function getPrefixedText( LinkTarget $target ) {
- $formatter = $this->getTitleFormatter();
- return $formatter->getPrefixedText( $target );
+ return MediaWikiServices::getInstance()->getTitleFormatter()->getPrefixedText( $target );
}
public function testListRecentChanges_returnsRCInfo() {
}
public function testListRecentChanges_returnsRCInfo() {