Fix "Incorrect watchlist token provided" unit test errors
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 28 Sep 2016 04:18:34 +0000 (21:18 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 28 Sep 2016 04:18:34 +0000 (21:18 -0700)
Change-Id: Ib133ffe9b9ef438ff5716ad25a897e2c5a4f7d58

tests/phpunit/includes/api/ApiQueryWatchlistRawIntegrationTest.php

index 582c076..d6f315d 100644 (file)
@@ -477,6 +477,7 @@ class ApiQueryWatchlistRawIntegrationTest extends ApiTestCase {
                        new TitleValue( 1, 'ApiQueryWatchlistRawIntegrationTestPage1' ),
                ] );
 
+               ObjectCache::getMainWANInstance()->clearProcessCache();
                $result = $this->doListWatchlistRawRequest( [
                        'wrowner' => $otherUser->getName(),
                        'wrtoken' => '1234567890',