MediaWiki  REL1_24
ApiMainTest Class Reference

API Database medium More...

Inheritance diagram for ApiMainTest:
Collaboration diagram for ApiMainTest:

List of all members.

Public Member Functions

 testApi ()
 Test that the API will accept a FauxRequest and execute.
 testAssert ($user, $assert, $error)
 Tests the assert={user|bot} functionality.

Static Public Member Functions

static provideAssert ()

Detailed Description

API Database medium

ApiMain

Definition at line 10 of file ApiMainTest.php.


Member Function Documentation

static ApiMainTest::provideAssert ( ) [static]

Definition at line 33 of file ApiMainTest.php.

References $user, array(), and User.

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 18 of file ApiMainTest.php.

References array().

ApiMainTest::testAssert ( user,
assert,
error 
)

Tests the assert={user|bot} functionality.

ApiMain::checkAsserts provideAssert

Parameters:
User$user
string$assert
string | bool$errorFalse if no error expected

Definition at line 60 of file ApiMainTest.php.

References $e, $error, $user, array(), ApiTestCase\doApiRequest(), and UsageException\getCodeString().


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