MediaWiki  master
ApiTest Class Reference

API Database More...

Inheritance diagram for ApiTest:
Collaboration diagram for ApiTest:

List of all members.

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

Detailed Description

API Database

Definition at line 7 of file ApiTest.php.


Member Function Documentation

ApiTest::runTokenTest ( user)

Definition at line 230 of file ApiTest.php.

References $keys, $user, and ApiTestCase\getTokenList().

Referenced by testGettingToken().

Test that the API will accept a FauxRequest and execute.

The help action (default) throws a UsageException. Just validate we're getting proper XML

UsageException

Definition at line 45 of file ApiTest.php.

References array().

Broken

Definition at line 155 of file ApiTest.php.

References $user, array(), MWHttpRequest\factory(), 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 224 of file ApiTest.php.

References $user, as, and runTokenTest().

Definition at line 9 of file ApiTest.php.

References array().

UsageException

Definition at line 31 of file ApiTest.php.

References array().

UsageException

Definition at line 20 of file ApiTest.php.

References array().

Definition at line 198 of file ApiTest.php.

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


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