TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
RequestBuilderTest Class Reference
Inheritance diagram for RequestBuilderTest:
UnitTestCase BaseTestCase

Public Member Functions

 buildReturnsAWebRequestObject ()
 
 buildSetsRequestPluginName ()
 
 buildSetsRequestControllerExtensionName ()
 
 buildSetsRequestControllerName ()
 
 buildSetsRequestControllerActionName ()
 
 buildSetsRequestRequestUri ()
 
 buildSetsRequestBaseUri ()
 
 buildSetsRequestMethod ()
 
 buildSetsVendorNameIfConfigured ()
 
 buildDoesNotSetVendorNameIfNotConfiguredInSecondRequest ()
 
 buildThrowsExceptionIfExtensionNameIsNotConfigured ()
 
 buildThrowsExceptionIfPluginNameIsNotConfigured ()
 
 buildThrowsExceptionIfControllerConfigurationIsEmptyOrNotSet ()
 
 buildThrowsExceptionIfControllerConfigurationHasNoDefaultActionDefined ()
 
 buildThrowsExceptionIfNoDefaultControllerCanBeResolved ()
 
 buildSetsParametersFromGetAndPostVariables ()
 
 buildSetsFormatFromGetAndPostVariables ()
 
 buildCorrectlySetsAllowedControllerActions ()
 
 buildThrowsExceptionIfDefaultControllerCantBeDetermined ()
 
 buildSetsDefaultControllerIfNoControllerIsSpecified ()
 
 buildCorrectlySetsSpecifiedControllerNameIfItsAllowedForTheCurrentPlugin ()
 
 buildThrowsInvalidControllerNameExceptionIfSpecifiedControllerIsNotAllowed ()
 
 buildThrowsPageNotFoundExceptionIfEnabledAndSpecifiedControllerIsNotAllowed ()
 
 buildSetsDefaultControllerNameIfSpecifiedControllerIsNotAllowedAndCallDefaultActionIfActionCantBeResolvedIsSet ()
 
 buildThrowsExceptionIfDefaultActionCantBeDetermined ()
 
 buildSetsDefaultActionOfTheCurrentControllerIfNoActionIsSpecified ()
 
 buildCorrectlySetsSpecifiedActionNameForTheDefaultControllerIfItsAllowedForTheCurrentPlugin ()
 
 buildCorrectlySetsSpecifiedActionNameForTheSpecifiedControllerIfItsAllowedForTheCurrentPlugin ()
 
 buildThrowsInvalidActionNameExceptionIfSpecifiedActionIsNotAllowed ()
 
 buildThrowsPageNotFoundExceptionIfEnabledAndSpecifiedActionIsNotAllowed ()
 
 buildSetsDefaultActionNameIfSpecifiedActionIsNotAllowedAndCallDefaultActionIfActionCantBeResolvedIsSet ()
 
 untangleFilesArrayTransformsTheFilesSuperglobalIntoAManageableForm ()
 

Protected Member Functions

 setUp ()
 
 injectDependencies ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $requestBuilder
 
 $mockConfigurationManager
 
 $configuration
 
 $mockObjectManager
 
 $mockExtensionService
 
 $mockEnvironmentService
 
 $mockRequest
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 24 of file Web/RequestBuilderTest.php.

Member Function Documentation

buildCorrectlySetsAllowedControllerActions ( )
buildCorrectlySetsSpecifiedActionNameForTheDefaultControllerIfItsAllowedForTheCurrentPlugin ( )
buildCorrectlySetsSpecifiedActionNameForTheSpecifiedControllerIfItsAllowedForTheCurrentPlugin ( )
buildCorrectlySetsSpecifiedControllerNameIfItsAllowedForTheCurrentPlugin ( )
buildDoesNotSetVendorNameIfNotConfiguredInSecondRequest ( )
buildReturnsAWebRequestObject ( )
buildSetsDefaultActionNameIfSpecifiedActionIsNotAllowedAndCallDefaultActionIfActionCantBeResolvedIsSet ( )
buildSetsDefaultActionOfTheCurrentControllerIfNoActionIsSpecified ( )
buildSetsDefaultControllerIfNoControllerIsSpecified ( )
buildSetsDefaultControllerNameIfSpecifiedControllerIsNotAllowedAndCallDefaultActionIfActionCantBeResolvedIsSet ( )
buildSetsFormatFromGetAndPostVariables ( )
buildSetsParametersFromGetAndPostVariables ( )
buildSetsRequestBaseUri ( )
buildSetsRequestControllerActionName ( )
buildSetsRequestControllerExtensionName ( )
buildSetsRequestControllerName ( )
buildSetsRequestMethod ( )
buildSetsRequestPluginName ( )
buildSetsRequestRequestUri ( )
buildSetsVendorNameIfConfigured ( )
buildThrowsExceptionIfControllerConfigurationHasNoDefaultActionDefined ( )
Test:

Definition at line 282 of file Web/RequestBuilderTest.php.

buildThrowsExceptionIfControllerConfigurationIsEmptyOrNotSet ( )
Test:

Definition at line 268 of file Web/RequestBuilderTest.php.

buildThrowsExceptionIfDefaultActionCantBeDetermined ( )
Test:

Definition at line 505 of file Web/RequestBuilderTest.php.

buildThrowsExceptionIfDefaultControllerCantBeDetermined ( )
Test:

Definition at line 404 of file Web/RequestBuilderTest.php.

buildThrowsExceptionIfExtensionNameIsNotConfigured ( )
buildThrowsExceptionIfNoDefaultControllerCanBeResolved ( )
Test:

Definition at line 296 of file Web/RequestBuilderTest.php.

buildThrowsExceptionIfPluginNameIsNotConfigured ( )
buildThrowsInvalidActionNameExceptionIfSpecifiedActionIsNotAllowed ( )
Test:

Definition at line 566 of file Web/RequestBuilderTest.php.

buildThrowsInvalidControllerNameExceptionIfSpecifiedControllerIsNotAllowed ( )
Test:

Definition at line 449 of file Web/RequestBuilderTest.php.

buildThrowsPageNotFoundExceptionIfEnabledAndSpecifiedActionIsNotAllowed ( )
Test:

Definition at line 585 of file Web/RequestBuilderTest.php.

buildThrowsPageNotFoundExceptionIfEnabledAndSpecifiedControllerIsNotAllowed ( )
Test:

Definition at line 468 of file Web/RequestBuilderTest.php.

injectDependencies ( )
protected
Returns
void

Definition at line 94 of file Web/RequestBuilderTest.php.

Referenced by RequestBuilderTest\buildCorrectlySetsAllowedControllerActions(), RequestBuilderTest\buildCorrectlySetsSpecifiedActionNameForTheDefaultControllerIfItsAllowedForTheCurrentPlugin(), RequestBuilderTest\buildCorrectlySetsSpecifiedActionNameForTheSpecifiedControllerIfItsAllowedForTheCurrentPlugin(), RequestBuilderTest\buildCorrectlySetsSpecifiedControllerNameIfItsAllowedForTheCurrentPlugin(), RequestBuilderTest\buildDoesNotSetVendorNameIfNotConfiguredInSecondRequest(), RequestBuilderTest\buildReturnsAWebRequestObject(), RequestBuilderTest\buildSetsDefaultActionNameIfSpecifiedActionIsNotAllowedAndCallDefaultActionIfActionCantBeResolvedIsSet(), RequestBuilderTest\buildSetsDefaultActionOfTheCurrentControllerIfNoActionIsSpecified(), RequestBuilderTest\buildSetsDefaultControllerIfNoControllerIsSpecified(), RequestBuilderTest\buildSetsDefaultControllerNameIfSpecifiedControllerIsNotAllowedAndCallDefaultActionIfActionCantBeResolvedIsSet(), RequestBuilderTest\buildSetsFormatFromGetAndPostVariables(), RequestBuilderTest\buildSetsParametersFromGetAndPostVariables(), RequestBuilderTest\buildSetsRequestBaseUri(), RequestBuilderTest\buildSetsRequestControllerActionName(), RequestBuilderTest\buildSetsRequestControllerExtensionName(), RequestBuilderTest\buildSetsRequestControllerName(), RequestBuilderTest\buildSetsRequestMethod(), RequestBuilderTest\buildSetsRequestPluginName(), RequestBuilderTest\buildSetsRequestRequestUri(), and RequestBuilderTest\buildSetsVendorNameIfConfigured().

setUp ( )
protected

Definition at line 61 of file Web/RequestBuilderTest.php.

References BaseTestCase\getAccessibleMock().

untangleFilesArrayTransformsTheFilesSuperglobalIntoAManageableForm ( )

Member Data Documentation

$configuration
protected

Definition at line 39 of file Web/RequestBuilderTest.php.

$mockEnvironmentService
protected
$mockExtensionService
protected

Definition at line 49 of file Web/RequestBuilderTest.php.

$mockObjectManager
protected

Definition at line 44 of file Web/RequestBuilderTest.php.

$mockRequest
protected

Definition at line 59 of file Web/RequestBuilderTest.php.