PHP Class Neos\Flow\Tests\Unit\Mvc\DispatcherTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$dispatcher Neos\Flow\Mvc\Dispatcher
$mockActionRequest Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject
$mockController Neos\Flow\Mvc\Controller\ControllerInterface | PHPUnit_Framework_MockObject_MockObject
$mockFirewall Neos\Flow\Security\Authorization\FirewallInterface | PHPUnit_Framework_MockObject_MockObject
$mockHttpRequest Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject
$mockHttpResponse Neos\Flow\Http\Response | PHPUnit_Framework_MockObject_MockObject
$mockMainRequest Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockParentRequest Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject
$mockSecurityContext Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject
$mockSecurityLogger Neos\Flow\Log\SecurityLoggerInterface | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
dispatchCallsStartAuthenticationOnAllActiveEntryPoints ( )
dispatchCallsTheControllersProcessRequestMethodUntilTheIsDispatchedFlagInTheRequestObjectIsSet ( )
dispatchCatchesStopExceptionOfActionRequestsAndRollsBackToTheParentRequest ( )
dispatchContinuesWithNextRequestFoundInAForwardException ( )
dispatchDoesNotBlockCliRequests ( )
dispatchDoesNotBlockRequestsIfAuthorizationChecksAreDisabled ( )
dispatchDoesNotSetInterceptedRequestIfAuthenticationTokensContainNoEntryPoint ( )
dispatchIgnoresStopExceptionsForFirstLevelActionRequests ( )
dispatchInterceptsActionRequestsByDefault ( )
dispatchRethrowsAccessDeniedException ( )
dispatchRethrowsAuthenticationRequiredExceptionIfSecurityContextDoesNotContainAnyAuthenticationToken ( )
dispatchSetsInterceptedRequestIfSecurityContextContainsAuthenticationTokensWithEntryPoints ( )
dispatchThrowsAnInfiniteLoopExceptionIfTheRequestCouldNotBeDispachedAfter99Iterations ( )
resolveControllerReturnsTheControllerSpecifiedInTheRequest ( )
resolveControllerThrowsAnInvalidControllerExceptionIfTheResolvedControllerDoesNotExist ( )
resolveControllerThrowsAnInvalidControllerExceptionIfTheResolvedControllerDoesNotImplementTheControllerInterface ( )
setUp ( ) Sets up this test case

Method Details

dispatchCallsStartAuthenticationOnAllActiveEntryPoints() public method

dispatchCallsTheControllersProcessRequestMethodUntilTheIsDispatchedFlagInTheRequestObjectIsSet() public method

dispatchCatchesStopExceptionOfActionRequestsAndRollsBackToTheParentRequest() public method

dispatchContinuesWithNextRequestFoundInAForwardException() public method

dispatchDoesNotBlockCliRequests() public method

dispatchDoesNotBlockRequestsIfAuthorizationChecksAreDisabled() public method

dispatchDoesNotSetInterceptedRequestIfAuthenticationTokensContainNoEntryPoint() public method

dispatchIgnoresStopExceptionsForFirstLevelActionRequests() public method

dispatchInterceptsActionRequestsByDefault() public method

dispatchRethrowsAccessDeniedException() public method

dispatchRethrowsAuthenticationRequiredExceptionIfSecurityContextDoesNotContainAnyAuthenticationToken() public method

dispatchSetsInterceptedRequestIfSecurityContextContainsAuthenticationTokensWithEntryPoints() public method

dispatchThrowsAnInfiniteLoopExceptionIfTheRequestCouldNotBeDispachedAfter99Iterations() public method

resolveControllerReturnsTheControllerSpecifiedInTheRequest() public method

resolveControllerThrowsAnInvalidControllerExceptionIfTheResolvedControllerDoesNotExist() public method

resolveControllerThrowsAnInvalidControllerExceptionIfTheResolvedControllerDoesNotImplementTheControllerInterface() public method

setUp() public method

Sets up this test case
public setUp ( )

Property Details

$dispatcher protected property

protected Dispatcher,Neos\Flow\Mvc $dispatcher
return Neos\Flow\Mvc\Dispatcher

$mockActionRequest protected property

protected ActionRequest,Neos\Flow\Mvc|PHPUnit_Framework_MockObject_MockObject $mockActionRequest
return Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject

$mockController protected property

protected ControllerInterface,Neos\Flow\Mvc\Controller|PHPUnit_Framework_MockObject_MockObject $mockController
return Neos\Flow\Mvc\Controller\ControllerInterface | PHPUnit_Framework_MockObject_MockObject

$mockFirewall protected property

protected FirewallInterface,Neos\Flow\Security\Authorization|PHPUnit_Framework_MockObject_MockObject $mockFirewall
return Neos\Flow\Security\Authorization\FirewallInterface | PHPUnit_Framework_MockObject_MockObject

$mockHttpRequest protected property

protected Request,Neos\Flow\Http|PHPUnit_Framework_MockObject_MockObject $mockHttpRequest
return Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject

$mockHttpResponse protected property

protected Response,Neos\Flow\Http|PHPUnit_Framework_MockObject_MockObject $mockHttpResponse
return Neos\Flow\Http\Response | PHPUnit_Framework_MockObject_MockObject

$mockMainRequest protected property

protected ActionRequest,Neos\Flow\Mvc|PHPUnit_Framework_MockObject_MockObject $mockMainRequest
return Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject

$mockObjectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockParentRequest protected property

protected ActionRequest,Neos\Flow\Mvc|PHPUnit_Framework_MockObject_MockObject $mockParentRequest
return Neos\Flow\Mvc\ActionRequest | PHPUnit_Framework_MockObject_MockObject

$mockSecurityContext protected property

protected Context,Neos\Flow\Security|PHPUnit_Framework_MockObject_MockObject $mockSecurityContext
return Neos\Flow\Security\Context | PHPUnit_Framework_MockObject_MockObject

$mockSecurityLogger protected property

protected SecurityLoggerInterface,Neos\Flow\Log|PHPUnit_Framework_MockObject_MockObject $mockSecurityLogger
return Neos\Flow\Log\SecurityLoggerInterface | PHPUnit_Framework_MockObject_MockObject