|
MediaWiki
REL1_21
|
API Database medium More...


Public Member Functions | |
| runTokenTest ($user) | |
| testApi () | |
| Test that the API will accept a FauxRequest and execute. | |
| testApiGotCookie () | |
| Broken | |
| testApiLoginBadPass () | |
| testApiLoginGoodPass () | |
| testApiLoginNoName () | |
| Test result of attempted login with an empty username. | |
| testGettingToken () | |
| testRequireOnlyOneParameterDefault () | |
| testRequireOnlyOneParameterTrue () | |
| UsageException | |
| testRequireOnlyOneParameterZero () | |
| UsageException | |
| testRunLogin () | |
API Database medium
Definition at line 8 of file ApiTest.php.
| ApiTest::runTokenTest | ( | $ | user | ) |
Definition at line 237 of file ApiTest.php.
References $keys, $user, and ApiTestCase\getTokenList().
Referenced by testGettingToken().
| ApiTest::testApi | ( | ) |
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 46 of file ApiTest.php.
References array().
Broken
Definition at line 159 of file ApiTest.php.
References $user, array(), MWHttpRequest\factory(), and global.
Definition at line 71 of file ApiTest.php.
References $result, $ret, $user, array(), ApiTestCase\doApiRequest(), and global.
Definition at line 113 of file ApiTest.php.
References $result, $ret, $user, array(), ApiTestCase\doApiRequest(), and global.
Test result of attempted login with an empty username.
Definition at line 64 of file ApiTest.php.
References array(), and ApiTestCase\doApiRequest().
Definition at line 231 of file ApiTest.php.
References $user, as, and runTokenTest().
Definition at line 10 of file ApiTest.php.
References array().
Definition at line 205 of file ApiTest.php.
References array(), and ApiTestCase\doApiRequest().