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

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

Protected Properties

Property Type Description
$actionRequest Neos\Flow\Mvc\ActionRequest
$mockHttpRequest Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
aSingleArgumentCanBeSetWithSetArgumentAndRetrievedWithGetArgument ( )
allArgumentsCanBeSetOrRetrievedAtOnce ( )
anHttpRequestOrActionRequestIsRequiredAsParentRequest ( ) By design, the root request will always be an HTTP request because it is the only of the two types which can be instantiated without having to pass another request as the parent request.
argumentNamespaceCanBeSpecified ( )
caseSensitiveObjectNames ( ) Data Provider
cloneResetsTheStatusToNotDispatched ( )
constructorThrowsAnExceptionIfNoValidRequestIsPassed ( )
getControllerNameExtractsTheControllerNameFromTheControllerObjectNameToAssureTheCorrectCase ( )
getControllerNameReturnsTheUnknownCasesControllerNameIfNoControllerObjectNameCouldBeDetermined ( )
getControllerObjectNameReturnsAnEmptyStringIfTheResolvedControllerDoesNotExist ( )
getControllerObjectNameReturnsObjectNameDerivedFromPreviouslySetControllerInformation ( )
getControllerSubpackageKeyExtractsTheSubpackageKeyFromTheControllerObjectNameToAssureTheCorrectCase ( )
getControllerSubpackageKeyReturnsNullIfNoSubpackageKeyIsSet ( )
getControllerSubpackageKeyReturnsTheUnknownCasesPackageKeyIfNoControllerObjectNameCouldBeDetermined ( )
getHttpRequestReturnsTheHttpRequestWhichIsTheRootOfAllActionRequests ( )
getMainRequestReturnsTheTopLevelActionRequestWhoseParentIsTheHttpRequest ( )
getReferringRequestThrowsAnExceptionIfTheHmacOfTheArgumentsCouldNotBeValid ( )
internalArgumentsAreHandledSeparately ( )
internalArgumentsMayHaveObjectValues ( )
internalArgumentsOfActionRequestOverruleThoseOfTheHttpRequest ( )
invalidActionNames ( ) Data Provider
invalidControllerNames ( ) Data Provider
isMainRequestChecksIfTheParentRequestIsNotAnHttpRequest ( )
pluginArgumentsAreHandledSeparately ( )
pluginArgumentsOfActionRequestOverruleThoseOfTheHttpRequest ( )
requestIsDispatchable ( )
setArgumentDoesNotAllowObjectValuesForRegularArguments ( )
setArgumentThrowsAnExceptionOnInvalidArgumentNames ( )
setControllerActionNameThrowsExceptionOnInvalidActionNames ( mixed $invalidActionName )
setControllerNameThrowsExceptionOnInvalidControllerNames ( mixed $invalidControllerName )
setControllerObjectNameSplitsTheGivenObjectNameIntoItsParts ( string $objectName, array $parts )
setControllerObjectNameThrowsExceptionOnUnknownObjectName ( )
setControllerPackageKeyWithLowercasePackageKeyResolvesCorrectly ( )
setDispatchedEmitsSignalIfDispatched ( )
setUp ( )
theActionNameCanBeSetAndRetrieved ( )
theActionNamesCaseIsFixedIfItIsAllLowerCaseAndTheControllerObjectNameIsKnown ( )
theRepresentationFormatCanBeSetAndRetrieved ( )

Method Details

aSingleArgumentCanBeSetWithSetArgumentAndRetrievedWithGetArgument() public method

allArgumentsCanBeSetOrRetrievedAtOnce() public method

anHttpRequestOrActionRequestIsRequiredAsParentRequest() public method

By design, the root request will always be an HTTP request because it is the only of the two types which can be instantiated without having to pass another request as the parent request.

argumentNamespaceCanBeSpecified() public method

caseSensitiveObjectNames() public method

Data Provider

cloneResetsTheStatusToNotDispatched() public method

constructorThrowsAnExceptionIfNoValidRequestIsPassed() public method

getControllerNameExtractsTheControllerNameFromTheControllerObjectNameToAssureTheCorrectCase() public method

getControllerNameReturnsTheUnknownCasesControllerNameIfNoControllerObjectNameCouldBeDetermined() public method

getControllerObjectNameReturnsAnEmptyStringIfTheResolvedControllerDoesNotExist() public method

getControllerObjectNameReturnsObjectNameDerivedFromPreviouslySetControllerInformation() public method

getControllerSubpackageKeyExtractsTheSubpackageKeyFromTheControllerObjectNameToAssureTheCorrectCase() public method

getControllerSubpackageKeyReturnsNullIfNoSubpackageKeyIsSet() public method

getControllerSubpackageKeyReturnsTheUnknownCasesPackageKeyIfNoControllerObjectNameCouldBeDetermined() public method

getHttpRequestReturnsTheHttpRequestWhichIsTheRootOfAllActionRequests() public method

getMainRequestReturnsTheTopLevelActionRequestWhoseParentIsTheHttpRequest() public method

getReferringRequestThrowsAnExceptionIfTheHmacOfTheArgumentsCouldNotBeValid() public method

internalArgumentsAreHandledSeparately() public method

internalArgumentsMayHaveObjectValues() public method

internalArgumentsOfActionRequestOverruleThoseOfTheHttpRequest() public method

invalidActionNames() public method

Data Provider
public invalidActionNames ( )

invalidControllerNames() public method

Data Provider

isMainRequestChecksIfTheParentRequestIsNotAnHttpRequest() public method

pluginArgumentsAreHandledSeparately() public method

pluginArgumentsOfActionRequestOverruleThoseOfTheHttpRequest() public method

requestIsDispatchable() public method

setArgumentDoesNotAllowObjectValuesForRegularArguments() public method

setArgumentThrowsAnExceptionOnInvalidArgumentNames() public method

setControllerActionNameThrowsExceptionOnInvalidActionNames() public method

public setControllerActionNameThrowsExceptionOnInvalidActionNames ( mixed $invalidActionName )
$invalidActionName mixed

setControllerNameThrowsExceptionOnInvalidControllerNames() public method

public setControllerNameThrowsExceptionOnInvalidControllerNames ( mixed $invalidControllerName )
$invalidControllerName mixed

setControllerObjectNameSplitsTheGivenObjectNameIntoItsParts() public method

public setControllerObjectNameSplitsTheGivenObjectNameIntoItsParts ( string $objectName, array $parts )
$objectName string
$parts array

setControllerObjectNameThrowsExceptionOnUnknownObjectName() public method

setControllerPackageKeyWithLowercasePackageKeyResolvesCorrectly() public method

setDispatchedEmitsSignalIfDispatched() public method

setUp() public method

public setUp ( )

theActionNameCanBeSetAndRetrieved() public method

theActionNamesCaseIsFixedIfItIsAllLowerCaseAndTheControllerObjectNameIsKnown() public method

theRepresentationFormatCanBeSetAndRetrieved() public method

Property Details

$actionRequest protected property

protected ActionRequest,Neos\Flow\Mvc $actionRequest
return Neos\Flow\Mvc\ActionRequest

$mockHttpRequest protected property

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