Destroy session after running api tests
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 9 Dec 2014 20:35:40 +0000 (21:35 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 16 Dec 2014 20:50:35 +0000 (20:50 +0000)
commitb52e1fe2f7e578a118a74f85cf20e5906432f662
tree8791bd92524956b1d17f194ae296e37f8cbf788a
parent7971681d5e8545ebcc174b59aa7d35f1e862e695
Destroy session after running api tests

ApiLogin and ApiCreateAccount calling wfSetupSession, which leaks a
session over the test.
The test RequestContextText needs a clear session to work, so the api
tests should avoid leaking the session.
Doing this in the ApiTestCase because some tests calling ApiLogin over
FauxRequest and that also starts a session.

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