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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$actionRequest Neos\Flow\Mvc\ActionRequest
$mockHttpRequest Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject

Méthodes publiques

Méthode 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 méthode

allArgumentsCanBeSetOrRetrievedAtOnce() public méthode

anHttpRequestOrActionRequestIsRequiredAsParentRequest() public méthode

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 méthode

caseSensitiveObjectNames() public méthode

Data Provider

cloneResetsTheStatusToNotDispatched() public méthode

constructorThrowsAnExceptionIfNoValidRequestIsPassed() public méthode

getControllerNameExtractsTheControllerNameFromTheControllerObjectNameToAssureTheCorrectCase() public méthode

getControllerNameReturnsTheUnknownCasesControllerNameIfNoControllerObjectNameCouldBeDetermined() public méthode

getControllerObjectNameReturnsAnEmptyStringIfTheResolvedControllerDoesNotExist() public méthode

getControllerObjectNameReturnsObjectNameDerivedFromPreviouslySetControllerInformation() public méthode

getControllerSubpackageKeyExtractsTheSubpackageKeyFromTheControllerObjectNameToAssureTheCorrectCase() public méthode

getControllerSubpackageKeyReturnsNullIfNoSubpackageKeyIsSet() public méthode

getControllerSubpackageKeyReturnsTheUnknownCasesPackageKeyIfNoControllerObjectNameCouldBeDetermined() public méthode

getHttpRequestReturnsTheHttpRequestWhichIsTheRootOfAllActionRequests() public méthode

getMainRequestReturnsTheTopLevelActionRequestWhoseParentIsTheHttpRequest() public méthode

getReferringRequestThrowsAnExceptionIfTheHmacOfTheArgumentsCouldNotBeValid() public méthode

internalArgumentsAreHandledSeparately() public méthode

internalArgumentsMayHaveObjectValues() public méthode

internalArgumentsOfActionRequestOverruleThoseOfTheHttpRequest() public méthode

invalidActionNames() public méthode

Data Provider
public invalidActionNames ( )

invalidControllerNames() public méthode

Data Provider

isMainRequestChecksIfTheParentRequestIsNotAnHttpRequest() public méthode

pluginArgumentsAreHandledSeparately() public méthode

pluginArgumentsOfActionRequestOverruleThoseOfTheHttpRequest() public méthode

requestIsDispatchable() public méthode

setArgumentDoesNotAllowObjectValuesForRegularArguments() public méthode

setArgumentThrowsAnExceptionOnInvalidArgumentNames() public méthode

setControllerActionNameThrowsExceptionOnInvalidActionNames() public méthode

public setControllerActionNameThrowsExceptionOnInvalidActionNames ( mixed $invalidActionName )
$invalidActionName mixed

setControllerNameThrowsExceptionOnInvalidControllerNames() public méthode

public setControllerNameThrowsExceptionOnInvalidControllerNames ( mixed $invalidControllerName )
$invalidControllerName mixed

setControllerObjectNameSplitsTheGivenObjectNameIntoItsParts() public méthode

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

setControllerObjectNameThrowsExceptionOnUnknownObjectName() public méthode

setControllerPackageKeyWithLowercasePackageKeyResolvesCorrectly() public méthode

setDispatchedEmitsSignalIfDispatched() public méthode

setUp() public méthode

public setUp ( )

theActionNameCanBeSetAndRetrieved() public méthode

theActionNamesCaseIsFixedIfItIsAllLowerCaseAndTheControllerObjectNameIsKnown() public méthode

theRepresentationFormatCanBeSetAndRetrieved() public méthode

Property Details

$actionRequest protected_oe property

protected ActionRequest,Neos\Flow\Mvc $actionRequest
Résultat Neos\Flow\Mvc\ActionRequest

$mockHttpRequest protected_oe property

protected Request,Neos\Flow\Http|PHPUnit_Framework_MockObject_MockObject $mockHttpRequest
Résultat Neos\Flow\Http\Request | PHPUnit_Framework_MockObject_MockObject