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

Public Member Functions

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

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ObjectManager $objectManager
 
Container $objectContainer
 

Private Member Functions

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

Private Attributes

const ENCRYPTION_KEY = '4408d27a916d51e624b69af3554f516dbab61037a9f7b9fd6f81b4d3bedeccb6'
 
 $pluginName
 
 $extensionName
 
 $pluginNamespacePrefix
 

Detailed Description

Test case

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

◆ buildResponse()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::buildResponse ( )
private

◆ createDocument()

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

◆ dispatch()

◆ inflateFormValues()

array 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']]`

Parameters
array$formValues
Returns
‪array

Definition at line 190 of file ActionControllerArgumentTest.php.

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

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

◆ parseDataFromResponseDocument()

array 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' => [...]]]`

Parameters
\DOMDocument$document
Returns
‪array

Definition at line 157 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().

◆ setUp()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::setUp ( )
protected

◆ tearDown()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::tearDown ( )
protected

Definition at line 65 of file ActionControllerArgumentTest.php.

References $GLOBALS.

◆ validationErrorReturnsToForwardedPreviousAction()

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

◆ validationErrorReturnsToForwardedPreviousActionDataProvider()

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

Definition at line 73 of file ActionControllerArgumentTest.php.

Member Data Documentation

◆ $extensionName

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

Definition at line 50 of file ActionControllerArgumentTest.php.

◆ $objectContainer

Container TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$objectContainer
protected

Definition at line 47 of file ActionControllerArgumentTest.php.

◆ $objectManager

ObjectManager TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$objectManager
protected

Definition at line 43 of file ActionControllerArgumentTest.php.

◆ $pluginName

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$pluginName
private

Definition at line 49 of file ActionControllerArgumentTest.php.

◆ $pluginNamespacePrefix

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::$pluginNamespacePrefix
private

Definition at line 51 of file ActionControllerArgumentTest.php.

◆ ENCRYPTION_KEY

const TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\ActionControllerArgumentTest::ENCRYPTION_KEY = '4408d27a916d51e624b69af3554f516dbab61037a9f7b9fd6f81b4d3bedeccb6'
private