MediaWiki
REL1_22
|
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 236 of file ApiTest.php.
References $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 158 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 112 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 230 of file ApiTest.php.
References $user, as, and runTokenTest().
Definition at line 10 of file ApiTest.php.
References array().
Definition at line 204 of file ApiTest.php.
References array(), and ApiTestCase\doApiRequest().