MediaWiki  REL1_20
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
 testApiListPages ()
 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 250 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.

Broken

Definition at line 155 of file ApiTest.php.

References $user, and MWHttpRequest\factory().

Todo:
Finish filling me out...what are we trying to test here?

Definition at line 201 of file ApiTest.php.

References $result, and ApiTestCase\doApiRequest().

Definition at line 71 of file ApiTest.php.

References $result, $user, and ApiTestCase\doApiRequest().

Definition at line 111 of file ApiTest.php.

References $result, $user, and ApiTestCase\doApiRequest().

Test result of attempted login with an empty username.

Definition at line 64 of file ApiTest.php.

References ApiTestCase\doApiRequest().

Definition at line 244 of file ApiTest.php.

References $user, and runTokenTest().

Definition at line 218 of file ApiTest.php.

References ApiTestCase\doApiRequest().


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