MediaWiki  master
ActionTest Class Reference

Action. More...

Inheritance diagram for ActionTest:
Collaboration diagram for ActionTest:

Public Member Functions

 actionProvider ()
 
 dummyActionCallback ()
 
 testActionExists ( $requestedAction, $expected)
 actionProvider More...
 
 testActionExists_doesNotRequireInstantiation ()
 
 testActionFactory ( $requestedAction, $expected)
 actionProvider More...
 
 testCanExecute ()
 
 testCanExecuteNoRight ()
 
 testCanExecuteRequiresUnblock ()
 
 testDisabledAction_exists ()
 
 testDisabledAction_factoryReturnsFalse ()
 
 testDisabledAction_isNotResolved ()
 
 testGetActionName ( $requestedAction, $expected)
 actionProvider More...
 
 testGetActionName_editredlinkWorkaround ()
 
 testGetActionName_historysubmitWorkaround ()
 
 testGetActionName_revisiondeleteWorkaround ()
 
 testGetActionName_whenCanNotUseWikiPage_defaultsToView ()
 
 testNull_canNotBeInstantiated ()
 
 testNull_defaultsToView ()
 
 testNull_doesNotExist ()
 

Protected Member Functions

 setUp ()
 

Private Member Functions

 getContext ( $requestedAction=null)
 
 getPage ()
 

Detailed Description

Action.

Action Database

Note
GPL-2.0-or-later
Author
Thiemo Kreuz

Definition at line 15 of file ActionTest.php.

Member Function Documentation

◆ actionProvider()

ActionTest::actionProvider ( )

Definition at line 51 of file ActionTest.php.

References null.

◆ dummyActionCallback()

ActionTest::dummyActionCallback ( )

Definition at line 186 of file ActionTest.php.

References $context, and getContext().

◆ getContext()

◆ getPage()

◆ setUp()

ActionTest::setUp ( )
protected

Definition at line 17 of file ActionTest.php.

References $context, class, getContext(), and null.

◆ testActionExists()

ActionTest::testActionExists (   $requestedAction,
  $expected 
)

actionProvider

Parameters
string$requestedAction
string | null$expected

Definition at line 75 of file ActionTest.php.

References Action\exists(), and null.

◆ testActionExists_doesNotRequireInstantiation()

ActionTest::testActionExists_doesNotRequireInstantiation ( )

Definition at line 81 of file ActionTest.php.

References Action\exists().

◆ testActionFactory()

ActionTest::testActionFactory (   $requestedAction,
  $expected 
)

actionProvider

Parameters
string$requestedAction
string | null$expected

Definition at line 139 of file ActionTest.php.

References $context, Action\factory(), and getContext().

◆ testCanExecute()

ActionTest::testCanExecute ( )

Definition at line 191 of file ActionTest.php.

References $user, Action\factory(), getContext(), and getPage().

◆ testCanExecuteNoRight()

ActionTest::testCanExecuteNoRight ( )

Definition at line 198 of file ActionTest.php.

References $e, $user, class, Action\factory(), getContext(), and getPage().

◆ testCanExecuteRequiresUnblock()

ActionTest::testCanExecuteRequiresUnblock ( )

Definition at line 210 of file ActionTest.php.

References $e, $user, class, Action\factory(), and getContext().

◆ testDisabledAction_exists()

ActionTest::testDisabledAction_exists ( )

Definition at line 166 of file ActionTest.php.

References Action\exists().

◆ testDisabledAction_factoryReturnsFalse()

ActionTest::testDisabledAction_factoryReturnsFalse ( )

Definition at line 179 of file ActionTest.php.

References Action\factory(), and getPage().

◆ testDisabledAction_isNotResolved()

ActionTest::testDisabledAction_isNotResolved ( )

Definition at line 172 of file ActionTest.php.

References $context, Action\getActionName(), and getContext().

◆ testGetActionName()

ActionTest::testGetActionName (   $requestedAction,
  $expected 
)

actionProvider

Parameters
string$requestedAction
string | null$expected

Definition at line 93 of file ActionTest.php.

References $context, Action\getActionName(), and getContext().

◆ testGetActionName_editredlinkWorkaround()

ActionTest::testGetActionName_editredlinkWorkaround ( )

Definition at line 100 of file ActionTest.php.

References $context, Action\getActionName(), and getContext().

◆ testGetActionName_historysubmitWorkaround()

ActionTest::testGetActionName_historysubmitWorkaround ( )

Definition at line 108 of file ActionTest.php.

References $context, Action\getActionName(), and getContext().

◆ testGetActionName_revisiondeleteWorkaround()

ActionTest::testGetActionName_revisiondeleteWorkaround ( )

Definition at line 116 of file ActionTest.php.

References $context, Action\getActionName(), and getContext().

◆ testGetActionName_whenCanNotUseWikiPage_defaultsToView()

ActionTest::testGetActionName_whenCanNotUseWikiPage_defaultsToView ( )

Definition at line 125 of file ActionTest.php.

References $context, $request, Action\getActionName(), and RequestContext\getMain().

◆ testNull_canNotBeInstantiated()

ActionTest::testNull_canNotBeInstantiated ( )

Definition at line 159 of file ActionTest.php.

References Action\factory(), getPage(), and null.

◆ testNull_defaultsToView()

ActionTest::testNull_defaultsToView ( )

Definition at line 152 of file ActionTest.php.

References $context, Action\getActionName(), getContext(), and null.

◆ testNull_doesNotExist()

ActionTest::testNull_doesNotExist ( )

Definition at line 146 of file ActionTest.php.

References Action\exists(), and null.


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