Fix for r100905:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 27 Oct 2011 18:46:40 +0000 (18:46 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 27 Oct 2011 18:46:40 +0000 (18:46 +0000)
commit681523d5ade7dccd85fe571a15f7a1d545dbcdf5
tree9148f7a003eba36562247c4658e32660abc0bb9d
parentc326cab51655700edce42633d7d775e0d8508ef6
Fix for r100905:
* Make tests work again
* Added ApiTestCase::doApiRequest() and related to pass it to the context and removed override of $wgUser where possible
* Fix ApiLogin to get the correct User object (i.e. the logged in one)
* Fix ApiBase to feed a RequestContext to setContext() so that ApiLogin can call setUser()
includes/api/ApiBase.php
includes/api/ApiLogin.php
tests/phpunit/includes/api/ApiBlockTest.php
tests/phpunit/includes/api/ApiTestCase.php
tests/phpunit/includes/api/ApiUploadTest.php
tests/phpunit/includes/upload/UploadFromUrlTest.php