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
API: Migrate Title::userCan() calls to PermissionManager
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiParseTest.php
diff --git
a/tests/phpunit/includes/api/ApiParseTest.php
b/tests/phpunit/includes/api/ApiParseTest.php
index
f8399a3
..
0011d7a
100644
(file)
--- a/
tests/phpunit/includes/api/ApiParseTest.php
+++ b/
tests/phpunit/includes/api/ApiParseTest.php
@@
-121,6
+121,7
@@
class ApiParseTest extends ApiTestCase {
$this->setMwGlobals( 'wgExtraInterlanguageLinkPrefixes', [ 'madeuplanguage' ] );
$this->tablesUsed[] = 'interwiki';
$this->setMwGlobals( 'wgExtraInterlanguageLinkPrefixes', [ 'madeuplanguage' ] );
$this->tablesUsed[] = 'interwiki';
+ $this->overrideMwServices();
}
/**
}
/**
@@
-581,8
+582,6
@@
class ApiParseTest extends ApiTestCase {
* @param array $arr Extra params to add to API request
*/
private function doTestLangLinks( array $arr = [] ) {
* @param array $arr Extra params to add to API request
*/
private function doTestLangLinks( array $arr = [] ) {
- $this->setupInterwiki();
-
$res = $this->doApiRequest( array_merge( [
'action' => 'parse',
'title' => 'Omelette',
$res = $this->doApiRequest( array_merge( [
'action' => 'parse',
'title' => 'Omelette',
@@
-600,10
+599,12
@@
class ApiParseTest extends ApiTestCase {
}
public function testLangLinks() {
}
public function testLangLinks() {
+ $this->setupInterwiki();
$this->doTestLangLinks();
}
public function testLangLinksWithSkin() {
$this->doTestLangLinks();
}
public function testLangLinksWithSkin() {
+ $this->setupInterwiki();
$this->setupSkin();
$this->doTestLangLinks( [ 'useskin' => 'testing' ] );
}
$this->setupSkin();
$this->doTestLangLinks( [ 'useskin' => 'testing' ] );
}