MediaWiki
REL1_24
|
Database API medium More...
Public Member Functions | |
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. | |
Protected Member Functions | |
setUp () |
ApiCreateAccountTest::setUp | ( | ) | [protected] |
Reimplemented from ApiTestCase.
Definition at line 11 of file ApiCreateAccountTest.php.
References array(), LoginForm\setCreateaccountToken(), and MediaWikiTestCase\setMwGlobals().
Make sure requests with existing users are invalid.
Definition at line 138 of file ApiCreateAccountTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Make sure requests with invalid emails are invalid.
Definition at line 152 of file ApiCreateAccountTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Make sure requests with no names are invalid.
Definition at line 114 of file ApiCreateAccountTest.php.
References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().
Make sure requests with no password are invalid.
Definition at line 126 of file ApiCreateAccountTest.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 25 of file ApiCreateAccountTest.php.
References $result, $ret, array(), ApiTestCase\doApiRequest(), global, and User\randomPassword().