MediaWiki  REL1_22
ApiCreateAccountTest Class Reference

Database API medium More...

Inheritance diagram for ApiCreateAccountTest:
Collaboration diagram for ApiCreateAccountTest:

List of all members.

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.

Detailed Description

Database API medium

Definition at line 8 of file ApiAccountCreationTest.php.


Member Function Documentation

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.

UsageException

Definition at line 136 of file ApiAccountCreationTest.php.

References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().

Make sure requests with invalid emails are invalid.

UsageException

Definition at line 150 of file ApiAccountCreationTest.php.

References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().

Make sure requests with no names are invalid.

UsageException

Definition at line 112 of file ApiAccountCreationTest.php.

References array(), ApiTestCase\doApiRequest(), and LoginForm\getCreateaccountToken().

Make sure requests with no password are invalid.

UsageException

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().


The documentation for this class was generated from the following file: