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 "(bug 40353) SpecialDoubleRedirect: Fix for interwiki redirects"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiTestCase.php
diff --git
a/tests/phpunit/includes/api/ApiTestCase.php
b/tests/phpunit/includes/api/ApiTestCase.php
index
b84292e
..
3cec99a
100644
(file)
--- a/
tests/phpunit/includes/api/ApiTestCase.php
+++ b/
tests/phpunit/includes/api/ApiTestCase.php
@@
-18,6
+18,8
@@
abstract class ApiTestCase extends MediaWikiLangTestCase {
$wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' );
$wgRequest = new FauxRequest( array() );
+ ApiQueryInfo::resetTokenCache(); // tokens are invalid because we cleared the session
+
self::$users = array(
'sysop' => new TestUser(
'Apitestsysop',