Clear token cache when resetting session.
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 24 Sep 2012 13:07:36 +0000 (15:07 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 24 Sep 2012 13:07:36 +0000 (15:07 +0200)
commita1fb3de7d2ffd8fc1d258cba3d8e20ca7db4d676
tree73dea8c29df08811ba6ff9c065c8998c91d93fb7
parent251b50a7f9a5af1cbd477365120783f0931401ed
Clear token cache when resetting session.

ApiTestCase resets global session data in setup, invalidating any existing cookies.
ApiQueryInfo caches all tokens, these need to be cleared out so tokens are re-generated
to match the fresh session.

Until now, individual tests have been doing that, but there's no not to do this per
default.

Change-Id: Icefa362190c2e7d87d09bda30079255741824f55
tests/phpunit/includes/api/ApiTestCase.php