‪TYPO3CMS  10.4
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 ($configuration, $expected)
 
array templateRootPathDataProvider ()
 
 setViewConfigurationResolvesLayoutRootPathsForLayoutRootPath ($configuration, $expected)
 
array layoutRootPathDataProvider ()
 
 setViewConfigurationResolvesPartialRootPathsForPartialRootPath ($configuration, $expected)
 
array partialRootPathDataProvider ()
 
 rendersAndAssignsAssetsFromViewIntoPageRenderer ($viewMock, $expectedHeader, $expectedFooter)
 
array headerAssetDataProvider ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
TYPO3 CMS Extbase Mvc Controller ActionController PHPUnit Framework MockObject MockObject TYPO3 TestingFramework Core AccessibleObjectInterface $actionController
 
TYPO3 CMS Extbase Object ObjectManagerInterface $mockObjectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $mockUriBuilder
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mockMvcPropertyMappingConfigurationService
 

Detailed Description

Test case

Definition at line 41 of file ActionControllerTest.php.

Member Function Documentation

◆ headerAssetDataProvider()

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

Definition at line 553 of file ActionControllerTest.php.

◆ initializeActionMethodArgumentsRegistersArgumentsFoundInTheSignatureOfTheCurrentActionMethod()

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

Definition at line 96 of file ActionControllerTest.php.

◆ initializeActionMethodArgumentsRegistersOptionalArgumentsAsSuch()

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

Definition at line 169 of file ActionControllerTest.php.

◆ initializeActionMethodArgumentsThrowsExceptionIfDataTypeWasNotSpecified()

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

Definition at line 241 of file ActionControllerTest.php.

◆ layoutRootPathDataProvider()

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

Definition at line 388 of file ActionControllerTest.php.

◆ partialRootPathDataProvider()

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

Definition at line 466 of file ActionControllerTest.php.

◆ rendersAndAssignsAssetsFromViewIntoPageRenderer()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\ActionControllerTest::rendersAndAssignsAssetsFromViewIntoPageRenderer (   $viewMock,
  $expectedHeader,
  $expectedFooter 
)
Parameters
FluidTemplateView$viewMock
string | null$expectedHeader
string | null$expectedFooter
Test:
‪@dataProvider headerAssetDataProvider

Definition at line 525 of file ActionControllerTest.php.

◆ resolveActionMethodNameReturnsTheCurrentActionMethodNameFromTheRequest()

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

Definition at line 66 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 (   $configuration,
  $expected 
)
Test:
‪@dataProvider layoutRootPathDataProvider
Parameters
array$configuration
array$expected

Definition at line 369 of file ActionControllerTest.php.

◆ setViewConfigurationResolvesPartialRootPathsForPartialRootPath()

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

Definition at line 447 of file ActionControllerTest.php.

◆ setViewConfigurationResolvesTemplateRootPathsForTemplateRootPath()

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

Definition at line 291 of file ActionControllerTest.php.

◆ templateRootPathDataProvider()

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

Definition at line 310 of file ActionControllerTest.php.

Member Data Documentation

◆ $actionController

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

Definition at line 49 of file ActionControllerTest.php.

◆ $mockMvcPropertyMappingConfigurationService

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

Definition at line 61 of file ActionControllerTest.php.

◆ $mockObjectManager

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

Definition at line 53 of file ActionControllerTest.php.

◆ $mockUriBuilder

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

Definition at line 57 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 45 of file ActionControllerTest.php.