PHP Class Neos\Flow\Tests\Unit\Mvc\Routing\DynamicRoutePartTest

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

Protected Properties

Property Type Description
$dynamicRoutPart Neos\Flow\Mvc\Routing\DynamicRoutePart
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

Public Methods

Method Description
dynamicRouteDoesNotMatchRequestPathWithMoreThanOneSegmentIfSplitStringIsNotFound ( )
dynamicRouteDoesNotMatchRequestPathWithMoreThanOneSegmentIfSplitStringIsNotSet ( )
dynamicRouteMatchesRequestPathWithOnlyOneSegmentIfSplitStringIsNotFound ( )
dynamicRouteMatchesRequestPathWithOnlyOneSegmentIfSplitStringIsNotSet ( )
dynamicRoutePartDoesNotChangeCaseOfValueIfLowerCaseIsFale ( )
dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet ( )
dynamicRoutePartDoesNotMatchIfNameIsNotSet ( )
dynamicRoutePartDoesNotMatchIfRequestPathIsNullOrEmpty ( )
dynamicRoutePartDoesNotMatchIfSplitStringIsAtFirstPosition ( )
dynamicRoutePartDoesNotResolveEmptyArray ( )
dynamicRoutePartDoesNotResolveEmptyArrayEvenIfDefaultValueIsSet ( )
dynamicRoutePartDoesNotResolveIfNameIsNotSet ( )
dynamicRoutePartLowerCasesValueWhenCallingResolveByDefault ( )
dynamicRoutePartMatchesIfSplitStringContainsMultipleCharactersThatAreFoundInRequestPath ( )
dynamicRoutePartRawUrlEncodesValues ( ) Makes sure that dynamic route parts are encoded via rawurlencode (which encodes spaces to "%20") and not urlencode (which encodes spaces to "+"). According to RFC 3986 that is correct for path segments.
dynamicRoutePartResolvesSimpleValueArray ( )
resolveDoesNotChangeRouteValuesOnUnsuccessfulResolve ( )
resolveRecursivelyUnsetsCurrentRouteValueOnSuccessfulResolve ( )
resolveReturnsFalseIfNoCorrespondingValueIsGiven ( )
resolveUnsetsCurrentRouteValueOnSuccessfulResolve ( )
resolveValueReturnsFalseIfTheValueToBeResolvedIsAnObjectThatIsUnknownToThePersistenceManager ( ) Objects that are unknown to the persistence manager cannot be resolved by the standard DynamicRoutePart handler.
resolveValueReturnsFalseIfTheValueToBeResolvedIsAnObjectWithAMultiValueIdentifier ( )
resolveValueReturnsTrueAndSetTheValueToTheCorrectlyCasedIdentifierIfTheValueToBeResolvedIsAnObjectAndLowerCaseIsFalse ( )
resolveValueReturnsTrueAndSetTheValueToTheLowerCasedIdentifierIfTheValueToBeResolvedIsAnObject ( )
resolveValueReturnsTrueIfTheValueToBeResolvedIsAnObjectWithANumericIdentifier ( )
routePartValueIsNullAfterUnsuccessfulResolve ( )
routePathIsShortenedByOneSegmentAfterSuccessfulMatch ( )
setUp ( )
valueIsNullAfterUnsuccessfulMatch ( )
valueIsUrlDecodedAfterSuccessfulMatch ( )
valueMatchesFirstRequestPathSegmentAfterSuccessfulMatch ( )

Method Details

dynamicRouteDoesNotMatchRequestPathWithMoreThanOneSegmentIfSplitStringIsNotFound() public method

dynamicRouteDoesNotMatchRequestPathWithMoreThanOneSegmentIfSplitStringIsNotSet() public method

dynamicRouteMatchesRequestPathWithOnlyOneSegmentIfSplitStringIsNotFound() public method

dynamicRouteMatchesRequestPathWithOnlyOneSegmentIfSplitStringIsNotSet() public method

dynamicRoutePartDoesNotChangeCaseOfValueIfLowerCaseIsFale() public method

dynamicRoutePartDoesNotMatchEmptyRequestPathEvenIfDefaultValueIsSet() public method

dynamicRoutePartDoesNotMatchIfNameIsNotSet() public method

dynamicRoutePartDoesNotMatchIfRequestPathIsNullOrEmpty() public method

dynamicRoutePartDoesNotMatchIfSplitStringIsAtFirstPosition() public method

dynamicRoutePartDoesNotResolveEmptyArray() public method

dynamicRoutePartDoesNotResolveEmptyArrayEvenIfDefaultValueIsSet() public method

dynamicRoutePartDoesNotResolveIfNameIsNotSet() public method

dynamicRoutePartLowerCasesValueWhenCallingResolveByDefault() public method

dynamicRoutePartMatchesIfSplitStringContainsMultipleCharactersThatAreFoundInRequestPath() public method

dynamicRoutePartRawUrlEncodesValues() public method

Makes sure that dynamic route parts are encoded via rawurlencode (which encodes spaces to "%20") and not urlencode (which encodes spaces to "+"). According to RFC 3986 that is correct for path segments.

dynamicRoutePartResolvesSimpleValueArray() public method

resolveDoesNotChangeRouteValuesOnUnsuccessfulResolve() public method

resolveRecursivelyUnsetsCurrentRouteValueOnSuccessfulResolve() public method

resolveReturnsFalseIfNoCorrespondingValueIsGiven() public method

resolveUnsetsCurrentRouteValueOnSuccessfulResolve() public method

resolveValueReturnsFalseIfTheValueToBeResolvedIsAnObjectThatIsUnknownToThePersistenceManager() public method

Objects that are unknown to the persistence manager cannot be resolved by the standard DynamicRoutePart handler.

resolveValueReturnsFalseIfTheValueToBeResolvedIsAnObjectWithAMultiValueIdentifier() public method

resolveValueReturnsTrueAndSetTheValueToTheCorrectlyCasedIdentifierIfTheValueToBeResolvedIsAnObjectAndLowerCaseIsFalse() public method

resolveValueReturnsTrueAndSetTheValueToTheLowerCasedIdentifierIfTheValueToBeResolvedIsAnObject() public method

resolveValueReturnsTrueIfTheValueToBeResolvedIsAnObjectWithANumericIdentifier() public method

routePartValueIsNullAfterUnsuccessfulResolve() public method

routePathIsShortenedByOneSegmentAfterSuccessfulMatch() public method

setUp() public method

public setUp ( )

valueIsNullAfterUnsuccessfulMatch() public method

valueIsUrlDecodedAfterSuccessfulMatch() public method

valueMatchesFirstRequestPathSegmentAfterSuccessfulMatch() public method

Property Details

$dynamicRoutPart protected property

protected DynamicRoutePart,Neos\Flow\Mvc\Routing $dynamicRoutPart
return Neos\Flow\Mvc\Routing\DynamicRoutePart

$mockPersistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $mockPersistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface