MediaWiki  REL1_19
ApiTest Class Reference

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

Database

Definition at line 6 of file ApiTest.php.


Member Function Documentation

ApiTest::runTokenTest ( user)

Definition at line 249 of file ApiTest.php.

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

Referenced by testGettingToken().

Here is the call graph for this function:

Here is the caller graph for this function:

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 44 of file ApiTest.php.

Broken

Definition at line 154 of file ApiTest.php.

References $serverName, $user, $wgScriptPath, $wgServer, and MWHttpRequest\factory().

Here is the call graph for this function:

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

Definition at line 200 of file ApiTest.php.

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

Here is the call graph for this function:

Definition at line 70 of file ApiTest.php.

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

Here is the call graph for this function:

Definition at line 110 of file ApiTest.php.

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

Here is the call graph for this function:

Test result of attempted login with an empty username.

Definition at line 63 of file ApiTest.php.

References ApiTestCase\doApiRequest().

Here is the call graph for this function:

Definition at line 243 of file ApiTest.php.

References $user, and runTokenTest().

Here is the call graph for this function:

Definition at line 217 of file ApiTest.php.

References ApiTestCase\doApiRequest().

Here is the call graph for this function:


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