Merge "(bug 40353) SpecialDoubleRedirect: Fix for interwiki redirects"
[lhc/web/wiklou.git] / tests / phpunit / includes / api / ApiTestCase.php
index b84292e..3cec99a 100644 (file)
@@ -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',