Revert r74122, making r74117 live again
authorSam Reed <reedy@users.mediawiki.org>
Sun, 3 Oct 2010 15:24:47 +0000 (15:24 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 3 Oct 2010 15:24:47 +0000 (15:24 +0000)
commit2d2ca9476de9cfc02a1fbc85562a0ed7630a4b1d
treee64096ad002afc3747c5c9e3a35e249cd2062f4e
parent1839a15957bb19934ddeebc068305ceca8d09d8d
Revert r74122, making r74117 live again

Some refactoring, to encapsulate users. Added a UserWrapper, contains the setup username/password and user object. Allows for ease of adding of multiple users (and groups)

Per Brion, if logging in user == wguser, we skip login tests, so use a secondary user

Fixup testApiLoginBadPass, we should get a WrongPass when the passwords wrong, but we've given a token
maintenance/tests/phpunit/includes/api/ApiSetup.php
maintenance/tests/phpunit/includes/api/ApiTest.php
maintenance/tests/phpunit/includes/api/ApiWatchTest.php