API: Reset token cache on login, so API tests work
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 22 Jun 2012 20:37:26 +0000 (22:37 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 22 Jun 2012 21:34:59 +0000 (23:34 +0200)
commitbfa1ced1a7d8cb13e3bd77cd23a3d7c733767e96
tree7ccbd32edf77ca754ad06c29288c6faa1936114e
parent87f1035ff4e1d00aa92d9babdfe00f785b47af0d
API: Reset token cache on login, so API tests work

Previously, logging in several times during a phpunit run would change the
session token, but keep the edit token, leasing to "bad token" failures for
all but the first login.

Change-Id: Iad49c990c5661d55cd907b8441addb74eb0ef694
includes/api/ApiLogin.php
includes/api/ApiQueryInfo.php