MediaWiki  REL1_22
ApiTest Class Reference

API Database medium 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 medium

Definition at line 8 of file ApiTest.php.


Member Function Documentation

ApiTest::runTokenTest ( user)

Definition at line 236 of file ApiTest.php.

References $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 46 of file ApiTest.php.

References array().

Broken

Definition at line 158 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 230 of file ApiTest.php.

References $user, as, and runTokenTest().

Definition at line 10 of file ApiTest.php.

References array().

UsageException

Definition at line 32 of file ApiTest.php.

References array().

UsageException

Definition at line 21 of file ApiTest.php.

References array().

Definition at line 204 of file ApiTest.php.

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


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