|
MediaWiki
REL1_24
|
API Database medium More...


Public Member Functions | |
| testApi () | |
| Test that the API will accept a FauxRequest and execute. | |
| testAssert ($user, $assert, $error) | |
| Tests the assert={user|bot} functionality. | |
Static Public Member Functions | |
| static | provideAssert () |
| static ApiMainTest::provideAssert | ( | ) | [static] |
Definition at line 33 of file ApiMainTest.php.
Test that the API will accept a FauxRequest and execute.
The help action (default) throws a UsageException. Just validate we're getting proper XML
Definition at line 18 of file ApiMainTest.php.
References array().
| ApiMainTest::testAssert | ( | $ | user, |
| $ | assert, | ||
| $ | error | ||
| ) |
Tests the assert={user|bot} functionality.
ApiMain::checkAsserts provideAssert
| User | $user | |
| string | $assert | |
| string | bool | $error | False if no error expected |
Definition at line 60 of file ApiMainTest.php.
References $e, $error, $user, array(), ApiTestCase\doApiRequest(), and UsageException\getCodeString().