Refactor much of the API testing code.
authorX! <soxred93@users.mediawiki.org>
Sun, 2 Jan 2011 05:52:00 +0000 (05:52 +0000)
committerX! <soxred93@users.mediawiki.org>
Sun, 2 Jan 2011 05:52:00 +0000 (05:52 +0000)
commitad6875383b4be396fb4ffd51e7a5771de49c61f8
treebe3cfab390e72085b86cc4133f696504de1162cb
parent8fad46e6add5d9de10606e8acf519d443ca85848
Refactor much of the API testing code.
Old: ApiWatchTest not only tested the watch module, but also tested the login module,
     and the login module test was also used to log in to the API for the other tests.
New: ApiWatchTest only contains watch-specific methods. The login testing has been moved
     to ApiTest. The code used to log in and get tokens have been moved to ApiSetup. Nice,
     organized, and much nicer than before. ApiUploadTest is still pretty fugly, though.
tests/phpunit/includes/api/ApiSetup.php
tests/phpunit/includes/api/ApiTest.php
tests/phpunit/includes/api/ApiUploadTest.php
tests/phpunit/includes/api/ApiWatchTest.php