Platonides
c220da92bb
Mark as needing a Database, as noted in r79532 CR.
...
It is needed for calling getServerVersion() to provide dbversion
2011-01-13 17:51:25 +00:00
Platonides
5ceb97cfc3
Follow up r80025.
...
The space is actually used inside extensions, such as Maps, covertly called as 'display_map' into
Validator, then converted into 'display map' by getName().
2011-01-12 00:11:11 +00:00
Platonides
8f87d873fa
Add tests for parser tag hooks.
2011-01-11 18:37:15 +00:00
Jure Kajzer
f853d711ac
* fixed Oracle code for installer and phpunit tests
...
* removed ORABlob class
2011-01-10 19:22:27 +00:00
Chad Horohoe
38babb25b5
More silly whitespace
2011-01-10 18:43:59 +00:00
Chad Horohoe
c12dcf7101
rm big whitespace
2011-01-10 18:41:31 +00:00
Chad Horohoe
d71167fa60
Move table prefixes to constants, add doc to addDBData()
2011-01-10 18:34:59 +00:00
Antoine Musso
c59480ada3
Add a .tld to emails when testing for white space before/after.
...
This might avoid confusion when testing. Currently, an email without
a tld is invalid (ex user@host). The assertions could have been
invalid just by the lack of tld, not the spaces!
2011-01-09 19:06:02 +00:00
Platonides
1235146be6
Unused global
2011-01-05 23:56:10 +00:00
Platonides
fa08f3be62
$messageMemc is used as local variable in line 63, function setUp
...
$messageMemc is used as local variable in line 74, function setUp
2011-01-05 23:54:07 +00:00
Platonides
7d7ea3db13
Remove the createaccount error check, failing since r79377.
...
The * group have createaccount right, so this seems an error.
2011-01-05 23:20:54 +00:00
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!
3e36a442e7
Forcing array breaks MWFunction with <2 parameters
2011-01-04 01:51:48 +00:00
X!
e1f21873d5
Fix r79494: Don't prefix functions now that they're in their own class
2011-01-04 01:44:11 +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!
4ffe303e4f
Add JSON test case
2011-01-03 21:14:51 +00:00
X!
c2f3948ecf
Followup r79523: Test that calling self:: and parent:: throws exception
2011-01-03 21:14:22 +00:00
Sam Reed
da2c995df1
Remove unreachable return;
...
Add missing global $IP;
2011-01-03 03:40:26 +00:00
X!
9012b54101
Mark broken parser tests as broken
2011-01-03 02:49:52 +00:00
X!
1d0ac4a481
Move wfCreateObject to MWFunction::newObj. This uses the ReflectionClass to
...
instantiate a variable-length constructor in php 5.1.3 and up, and falls
back to the old, ugly, manual method that was in the old wfCreateObject
function. The instances in the core have been replaced.
2011-01-03 02:10:05 +00:00
X!
867c9402be
-Add &watchuser option to ApiBlock
...
-Write tests for ApiBlock
2011-01-02 19:58:27 +00:00
X!
cbff3fe980
Followup to r79463: Move fallback functions to new Fallback class
2011-01-02 15:54:18 +00:00
X!
3589532db4
Per my comment on r68760: Make MWfunction class, complete with call_user_func helper functions that automatically
...
make the callback PHP 5.1 compatible with the Class::Method syntax. Add Unit tests to supplement it.
2011-01-02 06:48:07 +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
X!
7d686e0164
GlobalFunction additions:
...
-in_string has a case-insensitive option
-wfClientAcceptsGzip has a force option to force resetting the static value, useful for unit tests
Unit tests for more global functions added
2011-01-02 04:38:04 +00:00
X!
317721e250
Add more wfDebug tests
2011-01-02 02:33:07 +00:00
X!
496ff9d410
Followup r79467: Add more wfDebug() tests, complete with MockOutputPage
2011-01-02 02:16:32 +00:00
X!
9d29978252
Add some wfDebug() unit tests
2011-01-02 01:59:52 +00:00
X!
e2c7b2ce23
Add fallback mb_* function tests
2011-01-02 01:51:44 +00:00
X!
1b4c6a0254
Fix r79447: Remove debugging code
2011-01-01 22:19:22 +00:00
Platonides
1cb56fc8e3
Remove unused globals
2011-01-01 22:16:58 +00:00
X!
27618d012b
Followup r79443: Add some form of organization to the test autoloader
2011-01-01 22:16:54 +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!
c667c3f1be
Reorder functions around, add some form of order to the test suite.
...
It'd be nice to break some of these functions out to another class, but then again,
I'd also like to see Windows actually become stable, MediaWiki to become fully class based,
and Google to stop taking over the world. We can't all have what we want.
2011-01-01 20:57:13 +00:00
X!
2b8f832da8
Add fuzz tests to new parser tests (someone else should make sure this works as expected)
2011-01-01 18:10:28 +00:00
X!
37279160f3
Don't use the --verbose option anymore
2011-01-01 17:05:08 +00:00
X!
332e01addf
Add parsertest specific help to PHPUnit.php
2011-01-01 06:49:00 +00:00
X!
f8d74604fd
More work on new parser tests:
...
-No need to specify a new function for each argument, use PHP5 magic to automatically set it
-Create (g|s)etCliArg() functions
-Implement some features from the old parser tests
2011-01-01 05:53:04 +00:00
X!
34fc833407
Start work on porting ParserTests completely into PHPunit.
...
Disable temporary tables, a few reports of them not working. The tables get deleted anyway, so why risk it?
2011-01-01 03:39:37 +00:00
X!
2cc065167a
Forgot to change the other API tests
2010-12-31 22:34:20 +00:00
X!
a41edc27b5
Solve 1 test by changing static variables to non-static
2010-12-31 22:08:13 +00:00
X!
2441c2d5e4
For some reason tableExists() is being unreliable, which is resulting in tables not being dropped that _should_ be dropped. Drop them anyway and ignore the errors.
2010-12-31 21:51:21 +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
X!
02077c9901
Add check to make sure only MySQL and SQLite are used at the moment. These two are the only ones with the listTables() function, and the only ones that are tested.
2010-12-31 21:10:36 +00:00
X!
90e371195e
Only destroy DB if it needs it
2010-12-31 21:05:51 +00:00