‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest:

Public Member Functions

 validationErrorReturnsToForwardedPreviousAction (string $forwardTargetAction, array $forwardTargetArguments, string $validateAction, array $expectations)
 

Static Public Member Functions

static validationErrorReturnsToForwardedPreviousActionDataProvider ()
 

Protected Attributes

array $testExtensionsToLoad
 

Private Member Functions

 dispatch (ArgumentTestController $controller, RequestInterface $request)
 
 parseDataFromResponseDocument (\DOMDocument $document)
 
 inflateFormValues (array $formValues)
 
 createDocument (string $content)
 
 buildRequest (string $actionName, array $arguments=null)
 
 buildController ()
 

Private Attributes

string $pluginName = 'Pi1'
 
string $extensionName = 'ActionControllerArgumentTest'
 
string $pluginNamespacePrefix = 'tx_actioncontrollerargumenttest_pi1'
 

Detailed Description

Definition at line 37 of file ActionControllerArgumentTest.php.

Member Function Documentation

◆ buildController()

◆ buildRequest()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::buildRequest ( string  $actionName,
array  $arguments = null 
)
private

◆ createDocument()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::createDocument ( string  $content)
private

◆ dispatch()

◆ inflateFormValues()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::inflateFormValues ( array  $formValues)
private

Inflates form values for plugin arguments. ‘['tx_ext_pi1[aaa][bbb]’ => 'value'] --> ['aaa' => ['bbb' => 'value']]`

Definition at line 160 of file ActionControllerArgumentTest.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\setValueByPath().

Referenced by TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest\parseDataFromResponseDocument().

◆ parseDataFromResponseDocument()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::parseDataFromResponseDocument ( \DOMDocument  $document)
private

Parses result HTML, extracts inflated name/value pairs of <form> and validation errors, e.g. ‘['validationResults’ => ..., 'form' => ['value' => ..., '__referrer' => [...]]]`

Definition at line 130 of file ActionControllerArgumentTest.php.

References TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest\inflateFormValues().

Referenced by TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest\validationErrorReturnsToForwardedPreviousAction().

◆ validationErrorReturnsToForwardedPreviousAction()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::validationErrorReturnsToForwardedPreviousAction ( string  $forwardTargetAction,
array  $forwardTargetArguments,
string  $validateAction,
array  $expectations 
)

◆ validationErrorReturnsToForwardedPreviousActionDataProvider()

static TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::validationErrorReturnsToForwardedPreviousActionDataProvider ( )
static

Definition at line 47 of file ActionControllerArgumentTest.php.

Member Data Documentation

◆ $extensionName

string TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$extensionName = 'ActionControllerArgumentTest'
private

Definition at line 40 of file ActionControllerArgumentTest.php.

◆ $pluginName

string TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$pluginName = 'Pi1'
private

Definition at line 39 of file ActionControllerArgumentTest.php.

◆ $pluginNamespacePrefix

string TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$pluginNamespacePrefix = 'tx_actioncontrollerargumenttest_pi1'
private

Definition at line 41 of file ActionControllerArgumentTest.php.

◆ $testExtensionsToLoad

array TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$testExtensionsToLoad
protected
Initial value:
= [
'typo3/sysext/extbase/Tests/Functional/Mvc/Controller/Fixture/Extension/action_controller_argument_test',
]

Definition at line 43 of file ActionControllerArgumentTest.php.