MediaWiki
REL1_24
|
Public Member Functions | |
actionProvider () | |
dummyActionCallback () | |
testActionExists ($requestedAction, $expected) | |
actionProvider | |
testActionExists_doesNotRequireInstantiation () | |
testActionFactory ($requestedAction, $expected) | |
actionProvider | |
testDisabledAction_exists () | |
testDisabledAction_factoryReturnsFalse () | |
testDisabledAction_isNotResolved () | |
testGetActionName ($requestedAction, $expected) | |
actionProvider | |
testGetActionName_editredlinkWorkaround () | |
testGetActionName_historysubmitWorkaround () | |
testGetActionName_revisiondeleteWorkaround () | |
testNull_canNotBeInstantiated () | |
testNull_defaultsToView () | |
testNull_doesNotExist () | |
Protected Member Functions | |
setUp () | |
Private Member Functions | |
getContext ($requestedAction=null) | |
getPage () |
Definition at line 46 of file ActionTest.php.
References array().
Definition at line 172 of file ActionTest.php.
References getContext().
ActionTest::getContext | ( | $ | requestedAction = null | ) | [private] |
Definition at line 36 of file ActionTest.php.
References array(), RequestContext\getMain(), and getPage().
Referenced by dummyActionCallback(), setUp(), testActionFactory(), testDisabledAction_isNotResolved(), testGetActionName(), testGetActionName_editredlinkWorkaround(), testGetActionName_historysubmitWorkaround(), testGetActionName_revisiondeleteWorkaround(), and testNull_defaultsToView().
ActionTest::getPage | ( | ) | [private] |
Definition at line 32 of file ActionTest.php.
References WikiPage\factory(), and Title\makeTitle().
Referenced by getContext(), testDisabledAction_factoryReturnsFalse(), and testNull_canNotBeInstantiated().
ActionTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 14 of file ActionTest.php.
References array(), getContext(), and MediaWikiTestCase\setMwGlobals().
ActionTest::testActionExists | ( | $ | requestedAction, |
$ | expected | ||
) |
actionProvider
string | $requestedAction | |
string | null | $expected |
Definition at line 70 of file ActionTest.php.
References Action\exists().
Definition at line 76 of file ActionTest.php.
References Action\exists().
ActionTest::testActionFactory | ( | $ | requestedAction, |
$ | expected | ||
) |
actionProvider
string | $requestedAction | |
string | null | $expected |
Definition at line 125 of file ActionTest.php.
References MediaWikiTestCase\assertType(), Action\factory(), and getContext().
Definition at line 152 of file ActionTest.php.
References Action\exists().
Definition at line 165 of file ActionTest.php.
References Action\factory(), and getPage().
Definition at line 158 of file ActionTest.php.
References Action\getActionName(), and getContext().
ActionTest::testGetActionName | ( | $ | requestedAction, |
$ | expected | ||
) |
actionProvider
string | $requestedAction | |
string | null | $expected |
Definition at line 88 of file ActionTest.php.
References Action\getActionName(), and getContext().
Definition at line 95 of file ActionTest.php.
References Action\getActionName(), and getContext().
Definition at line 103 of file ActionTest.php.
References Action\getActionName(), and getContext().
Definition at line 111 of file ActionTest.php.
References Action\getActionName(), and getContext().
Definition at line 145 of file ActionTest.php.
References Action\factory(), and getPage().
Definition at line 138 of file ActionTest.php.
References Action\getActionName(), and getContext().
Definition at line 132 of file ActionTest.php.
References Action\exists().