‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest:

Public Member Functions

 resolveActionMethodNameReturnsTheCurrentActionMethodNameFromTheRequest ()
 
 resolveActionMethodNameThrowsAnExceptionIfTheActionDefinedInTheRequestDoesNotExist ()
 
 initializeActionMethodArgumentsRegistersArgumentsFoundInTheSignatureOfTheCurrentActionMethod ()
 
 initializeActionMethodArgumentsRegistersOptionalArgumentsAsSuch ()
 
 initializeActionMethodArgumentsThrowsExceptionIfDataTypeWasNotSpecified ()
 
 setViewConfigurationResolvesTemplateRootPathsForTemplateRootPath (array $configuration, array $expected)
 
array templateRootPathDataProvider ()
 
 setViewConfigurationResolvesLayoutRootPathsForLayoutRootPath (array $configuration, array $expected)
 
array layoutRootPathDataProvider ()
 
 setViewConfigurationResolvesPartialRootPathsForPartialRootPath (array $configuration, array $expected)
 
array partialRootPathDataProvider ()
 
 rendersAndAssignsAssetsFromViewIntoPageRenderer ($viewMock, ?string $expectedHeader, ?string $expectedFooter)
 
array headerAssetDataProvider ()
 
array addFlashMessageDataProvider ()
 
 addFlashMessageAddsFlashMessageObjectToFlashMessageQueue ( $expectedMessage, $messageBody, $messageTitle='', $severity=FlashMessage::OK, $storeInSession=true)
 
 addFlashMessageThrowsExceptionOnInvalidMessageBody ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
ActionController MockObject AccessibleObjectInterface $actionController
 
ObjectManagerInterface $mockObjectManager
 
UriBuilder $mockUriBuilder
 
MvcPropertyMappingConfigurationService $mockMvcPropertyMappingConfigurationService
 

Detailed Description

Definition at line 49 of file ActionControllerTest.php.

Member Function Documentation

◆ addFlashMessageAddsFlashMessageObjectToFlashMessageQueue()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::addFlashMessageAddsFlashMessageObjectToFlashMessageQueue (   $expectedMessage,
  $messageBody,
  $messageTitle = '',
  $severity = FlashMessage::OK,
  $storeInSession = true 
)
Test:
‪@dataProvider addFlashMessageDataProvider

Definition at line 635 of file ActionControllerTest.php.

References TYPO3\CMS\Core\Utility\StringUtility\getUniqueId().

◆ addFlashMessageDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::addFlashMessageDataProvider ( )

◆ addFlashMessageThrowsExceptionOnInvalidMessageBody()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::addFlashMessageThrowsExceptionOnInvalidMessageBody ( )

◆ headerAssetDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::headerAssetDataProvider ( )
Returns
‪array

Definition at line 547 of file ActionControllerTest.php.

◆ initializeActionMethodArgumentsRegistersArgumentsFoundInTheSignatureOfTheCurrentActionMethod()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::initializeActionMethodArgumentsRegistersArgumentsFoundInTheSignatureOfTheCurrentActionMethod ( )
Test:
Todo:
‪: make this a functional test

Definition at line 95 of file ActionControllerTest.php.

◆ initializeActionMethodArgumentsRegistersOptionalArgumentsAsSuch()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::initializeActionMethodArgumentsRegistersOptionalArgumentsAsSuch ( )
Test:

Definition at line 166 of file ActionControllerTest.php.

◆ initializeActionMethodArgumentsThrowsExceptionIfDataTypeWasNotSpecified()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::initializeActionMethodArgumentsThrowsExceptionIfDataTypeWasNotSpecified ( )
Test:

Definition at line 236 of file ActionControllerTest.php.

◆ layoutRootPathDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::layoutRootPathDataProvider ( )
Returns
‪array

Definition at line 381 of file ActionControllerTest.php.

◆ partialRootPathDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::partialRootPathDataProvider ( )
Returns
‪array

Definition at line 459 of file ActionControllerTest.php.

◆ rendersAndAssignsAssetsFromViewIntoPageRenderer()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::rendersAndAssignsAssetsFromViewIntoPageRenderer (   $viewMock,
?string  $expectedHeader,
?string  $expectedFooter 
)
Parameters
FluidTemplateView$viewMock
string | null$expectedHeader
string | null$expectedFooter
Test:
‪@dataProvider headerAssetDataProvider
Todo:
‪Review type from $viewMock (type declaration in method signature leads to test bench errors)

Definition at line 519 of file ActionControllerTest.php.

◆ resolveActionMethodNameReturnsTheCurrentActionMethodNameFromTheRequest()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::resolveActionMethodNameReturnsTheCurrentActionMethodNameFromTheRequest ( )
Test:

Definition at line 67 of file ActionControllerTest.php.

◆ resolveActionMethodNameThrowsAnExceptionIfTheActionDefinedInTheRequestDoesNotExist()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::resolveActionMethodNameThrowsAnExceptionIfTheActionDefinedInTheRequestDoesNotExist ( )
Test:

Definition at line 79 of file ActionControllerTest.php.

◆ setViewConfigurationResolvesLayoutRootPathsForLayoutRootPath()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::setViewConfigurationResolvesLayoutRootPathsForLayoutRootPath ( array  $configuration,
array  $expected 
)
Test:
‪@dataProvider layoutRootPathDataProvider
Parameters
array$configuration
array$expected

Definition at line 362 of file ActionControllerTest.php.

◆ setViewConfigurationResolvesPartialRootPathsForPartialRootPath()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::setViewConfigurationResolvesPartialRootPathsForPartialRootPath ( array  $configuration,
array  $expected 
)
Test:
‪@dataProvider partialRootPathDataProvider
Parameters
array$configuration
array$expected

Definition at line 440 of file ActionControllerTest.php.

◆ setViewConfigurationResolvesTemplateRootPathsForTemplateRootPath()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::setViewConfigurationResolvesTemplateRootPathsForTemplateRootPath ( array  $configuration,
array  $expected 
)
Test:
‪@dataProvider templateRootPathDataProvider
Parameters
array$configuration
array$expected

Definition at line 284 of file ActionControllerTest.php.

◆ templateRootPathDataProvider()

array TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::templateRootPathDataProvider ( )
Returns
‪array

Definition at line 303 of file ActionControllerTest.php.

Member Data Documentation

◆ $actionController

ActionController MockObject AccessibleObjectInterface TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::$actionController
protected

Definition at line 58 of file ActionControllerTest.php.

◆ $mockMvcPropertyMappingConfigurationService

MvcPropertyMappingConfigurationService TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::$mockMvcPropertyMappingConfigurationService
protected

Definition at line 62 of file ActionControllerTest.php.

◆ $mockObjectManager

ObjectManagerInterface TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::$mockObjectManager
protected

Definition at line 60 of file ActionControllerTest.php.

◆ $mockUriBuilder

UriBuilder TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::$mockUriBuilder
protected

Definition at line 61 of file ActionControllerTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 54 of file ActionControllerTest.php.