ApiTestCase: Set correct user for derivate requests
authorMatthias Mullie <git@mullie.eu>
Fri, 5 Jun 2015 09:52:40 +0000 (11:52 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Fri, 5 Jun 2015 17:37:14 +0000 (17:37 +0000)
commita8a6eda41d58ae91c0cd8603943f3a6fdcd19def
tree5a5ce4f8b7aeb2ba096be83176754ea1d30b0808
parent45df7150c4186e52fe658e25389d703849b6694b
ApiTestCase: Set correct user for derivate requests

RequestContext::getMain()->getUser() in a (faux) API request doesn't return the
user the (faux) API call is made with, but the user running the tests.

Bug: T101388
Change-Id: Icbbf14a6433edf5c91162a9d67899d6a2d5c33df
tests/phpunit/includes/api/ApiTestCase.php