MediaWiki  REL1_20
ApiOptionsTest Class Reference

API Database More...

Inheritance diagram for ApiOptionsTest:
Collaboration diagram for ApiOptionsTest:

List of all members.

Public Member Functions

 hookGetPreferences ($user, &$preferences)
 setUp ()
 tearDown ()
 testAnon ()
 testChange ()
 testNoChanges ()
 testNoOptionname ()
 testNoToken ()
 UsageException
 testOptionResetValue ()
 testOptionWithValue ()
 testReset ()
 testResetChangeOption ()

Public Attributes

 $mApiMainMock
 $mContext
 $mSession
 $mUserMock

Private Member Functions

 executeQuery ($request)
 getSampleRequest ($custom=array())

Private Attributes

 $mOldGetPreferencesHooks = false
 $mTested

Static Private Attributes

static $Success = array( 'options' => 'success' )

Detailed Description

API Database

Definition at line 7 of file ApiOptionsTest.php.


Member Function Documentation

ApiOptionsTest::hookGetPreferences ( user,
&$  preferences 
)

Definition at line 68 of file ApiOptionsTest.php.

Reimplemented from MediaWikiLangTestCase.

Definition at line 15 of file ApiOptionsTest.php.

References $wgHooks, and Title\newFromText().

Reimplemented from MediaWikiLangTestCase.

Definition at line 57 of file ApiOptionsTest.php.

References $wgHooks.


Member Data Documentation

ApiOptionsTest::$mApiMainMock

Definition at line 9 of file ApiOptionsTest.php.

ApiOptionsTest::$mContext

Definition at line 9 of file ApiOptionsTest.php.

ApiOptionsTest::$mOldGetPreferencesHooks = false [private]

Definition at line 11 of file ApiOptionsTest.php.

ApiOptionsTest::$mSession

Definition at line 9 of file ApiOptionsTest.php.

ApiOptionsTest::$mTested [private]

Definition at line 9 of file ApiOptionsTest.php.

ApiOptionsTest::$mUserMock

Definition at line 9 of file ApiOptionsTest.php.

ApiOptionsTest::$Success = array( 'options' => 'success' ) [static, private]

Definition at line 13 of file ApiOptionsTest.php.


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