MediaWiki  REL1_22
ApiOptionsTest Class Reference

API Database medium More...

Inheritance diagram for ApiOptionsTest:
Collaboration diagram for ApiOptionsTest:

List of all members.

Public Member Functions

 getOptionKinds (IContextSource $context, $options=null)
 hookGetPreferences ($user, &$preferences)
 testAnon ()
 testChange ()
 testMultiSelect ()
 testNoChanges ()
 testNoOptionname ()
 testNoToken ()
 UsageException
 testOptionResetValue ()
 testOptionWithValue ()
 testReset ()
 testResetChangeOption ()
 testResetKinds ()
 testUnknownOption ()
 testUserjsOption ()

Public Attributes

 $mContext
 $mSession
 $mUserMock

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()

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 medium

Definition at line 8 of file ApiOptionsTest.php.


Member Function Documentation

ApiOptionsTest::getOptionKinds ( IContextSource context,
options = null 
)

Definition at line 94 of file ApiOptionsTest.php.

References $key, $options, $value, array(), and as.

ApiOptionsTest::hookGetPreferences ( user,
&$  preferences 
)

Definition at line 64 of file ApiOptionsTest.php.

References array(), and as.

ApiOptionsTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiLangTestCase.

Definition at line 16 of file ApiOptionsTest.php.

References $wgHooks, any, array(), global, and Title\newFromText().

ApiOptionsTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 53 of file ApiOptionsTest.php.

References $wgHooks, and global.


Member Data Documentation

ApiOptionsTest::$mContext

Definition at line 10 of file ApiOptionsTest.php.

ApiOptionsTest::$mOldGetPreferencesHooks = false [private]

Definition at line 12 of file ApiOptionsTest.php.

ApiOptionsTest::$mSession

Definition at line 10 of file ApiOptionsTest.php.

ApiOptionsTest::$mTested [private]

Definition at line 10 of file ApiOptionsTest.php.

ApiOptionsTest::$mUserMock

Definition at line 10 of file ApiOptionsTest.php.

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

Definition at line 14 of file ApiOptionsTest.php.


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