MediaWiki
REL1_22
|
Database API medium More...
Public Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. | |
testExistingUser () | |
Make sure requests with existing users are invalid. | |
testInvalidEmail () | |
Make sure requests with invalid emails are invalid. | |
testNoName () | |
Make sure requests with no names are invalid. | |
testNoPassword () | |
Make sure requests with no password are invalid. | |
testValid () | |
Test the account creation API with a valid request. |
Database API medium
Definition at line 8 of file ApiAccountCreationTest.php.
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from ApiTestCase.
Definition at line 9 of file ApiAccountCreationTest.php.
References array(), LoginForm\setCreateaccountToken(), and MediaWikiTestCase\setMwGlobals().
Make sure requests with existing users are invalid.
Definition at line 136 of file ApiAccountCreationTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Make sure requests with invalid emails are invalid.
Definition at line 150 of file ApiAccountCreationTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Make sure requests with no names are invalid.
Definition at line 112 of file ApiAccountCreationTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Make sure requests with no password are invalid.
Definition at line 124 of file ApiAccountCreationTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Test the account creation API with a valid request.
Also make sure the new account can log in and is valid.
This test does multiple API requests so it might end up being a bit slow. Raise the default timeout. medium
Definition at line 23 of file ApiAccountCreationTest.php.
References $password, $result, $ret, array(), ApiTestCase\doApiRequest(), global, and User\randomPassword().