Commit graph

216 commits

Author SHA1 Message Date
Platonides
b75be64f49 Follow up r79532. Do not setup a user needlessly. 2011-01-05 19:35:58 +00:00
X!
e23d09cfee Fix r79532: Strct standards 2011-01-04 11:58:17 +00:00
X!
bab978f5d5 Add API query test 2011-01-04 03:22:40 +00:00
X!
ffa443c049 Followup to r79532: Did I really need to implement a parameter? No, I did not. 2011-01-04 01:35:01 +00:00
X!
4e4fa436fa Add API format testing 2011-01-03 21:36:49 +00:00
X!
867c9402be -Add &watchuser option to ApiBlock
-Write tests for ApiBlock
2011-01-02 19:58:27 +00:00
X!
4cce1efbe7 Followup to r79477: Add invalid purge title 2011-01-02 06:15:32 +00:00
X!
cbca0769b7 Add API purge test (mainly as proof of concept for how API tests should be written) 2011-01-02 06:09:58 +00:00
X!
ad6875383b 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.
2011-01-02 05:52:00 +00:00
Platonides
f78ae2a51a Use an autoloader for the tests, following the ideas from r72858.
The SeleniumTestConstants class was added in r79437
2011-01-01 22:04:14 +00:00
X!
2cc065167a Forgot to change the other API tests 2010-12-31 22:34:20 +00:00
X!
a26353ec0b -If $this->db does not exist, skip destroying the DB
-Fix ApiTest errors due to DB rewrite
2010-12-31 21:40:26 +00:00
Chad Horohoe
447529064b * verbose and color default output from phpunit
* Make a bunch of tests subclass MediaWikiTestCase
* Parser tests and ResourceLoaderTest can't subclass it yet due to various issues
2010-12-28 18:17:16 +00:00
X!
eb0611a171 assertType() is deprecated, switching usages tp assertInternalType() and assertInstanceOf() 2010-12-28 15:13:42 +00:00
Platonides
0a59772372 This path changed when moving the tests folder. 2010-12-16 15:09:50 +00:00
Chad Horohoe
23f69f10ed Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this. 2010-12-14 16:26:35 +00:00