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

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

Protected Properties

Свойство Type Description
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject
$route Neos\Flow\Mvc\Routing\Route
$routeValues array

Méthodes publiques

Méthode Description
byDefaultRouteDoesNotResolveIfUriPatternContainsLessValuesThanAreSpecified ( )
compareAndRemoveMatchingDefaultValuesDataProvider ( ) Data provider
compareAndRemoveMatchingDefaultValuesTests ( array $defaults, array $routeValues, array $expectedModifiedRouteValues, boolean $expectedResult )
defaultValuesAreSetForUriPatternSegmentsWithMultipleOptionalRouteParts ( )
getMatchResultsReturnsCorrectResultsAfterSuccessfulMatch ( )
httpMethodConstraintsCanBeSetAndRetrieved ( )
ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated ( )
matchesRecursivelyMergesMatchResults ( )
matchesThrowsExceptionIfRoutePartValueContainsObjects ( boolean $shouldThrowException, mixed $routePartValue )
matchesThrowsExceptionIfRoutePartValueContainsObjectsDataProvider ( ) Data provider
matchingRouteIsProperlyResolved ( )
parseSetsDefaultValueOfRouteParts ( )
parseSetsDefaultValueOfRoutePartsRecursively ( )
parseSetsUriPatternOfIdentityRoutePartIfSpecified ( )
registeredRoutePartHandlerIsInvokedWhenCallingMatch ( )
registeredRoutePartHandlerIsInvokedWhenCallingResolve ( )
resolvedUriPathIsNullAfterUnsuccessfulResolve ( )
resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath ( )
resolvesAppendsRemainingRouteValuesToResolvedUriPathIfAppendExceedingArgumentsIsTrue ( )
resolvesCallsCompareAndRemoveMatchingDefaultValues ( )
resolvesConvertsDomainObjectsToIdentityArrays ( )
resolvesKeepsCaseOfResolvedUriIfToLowerCaseIsFalse ( )
resolvesLowerCasesResolvedUriPathByDefault ( )
resolvesReturnsFalseIfNotAllRouteValuesCanBeResolved ( )
resolvesReturnsTrueIfTargetControllerExists ( )
resolvesThrowsExceptionIfRoutePartDefaultValueIsNoString ( )
resolvesThrowsExceptionIfRoutePartValueIsNoString ( )
routeAlwaysAppendsExceedingInternalArguments ( )
routeAlwaysAppendsExceedingInternalArgumentsRecursively ( )
routeAppendsAllAdditionalQueryParametersIfUriPatternContainsLessValuesThanAreSpecifiedIfAppendExceedingArgumentsIsTrue ( )
routeCanBeResolvedIfAComplexValueIsEqualToItsDefaultValue ( )
routeCanBeResolvedIfASpecifiedValueIsEqualToItsDefaultValue ( )
routeCantBeResolvedIfASpecifiedValueIsNotEqualToItsDefaultValue ( )
routeDoesNotMatchEmptyRequestPathIfUriPatternIsNotSet ( )
routeDoesNotMatchIfOneSegmentOfRequestPathIsDifferentFromItsRespectiveStaticUriPatternSegment ( )
routeDoesNotMatchIfRequestMethodIsNotAccepted ( )
routeDoesNotMatchIfRequestPathIsDifferentFromStaticUriPattern ( )
routeDoesNotMatchIfRequestPathIsEqualToStaticUriPatternWithoutSlashes ( )
routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet ( )
routeDoesNotMatchRequestPathContainingOnlySomeOfTheOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithAllPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternContainsTwoSuccessiveOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithRequiredAndOnlyOneOptionalPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts ( )
routeDoesNotResolveIfRouteValuesContainAnIdentityForAnArgumentThatIsNotPartOfTheRoute ( )
routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalDynamicRoutePartWithDefaultValue ( )
routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalStaticRoutePart ( )
routeMatchesEmptyRequestPathIfUriPatternIsEmpty ( )
routeMatchesIfRequestMethodIsAccepted ( )
routeMatchesIfRequestPathIsEqualToStaticUriPattern ( )
routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault ( )
routeMatchesIfStaticSegmentsMatchAndASegmentExistsForAllDynamicUriPartSegments ( )
routeMatchesRequestPathContainingAllOfTheOptionalRouteParts ( )
routeMatchesRequestPathContainingNoneOfTheOptionalRouteParts ( )
routeMatchesRequestPathWithAllPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithAllPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneRequiredAndOneOptionalStaticRoutePart ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts ( )
routePartHandlerIsInstantiated ( )
routeThrowsExceptionIfUriPatternContainsOneOptionalDynamicRoutePartWithoutDefaultValue ( )
setDefaultsAllowsToSetTheDefaultPackageControllerAndActionName ( )
setNameCorrectlySetsRouteName ( )
setUp ( ) Sets up this test case
settingInvalidRoutePartHandlerThrowsException ( )
settingUriPatternResetsRoute ( )
staticAndDynamicRoutesCanBeMixedInAnyOrder ( )
uriPatternSegmentCanContainTwoDynamicRouteParts ( )
uriPatternSegmentsCanContainMultipleDynamicRouteParts ( )
uriPatternWithLeadingSlashThrowsException ( )
uriPatternWithSuccessiveDynamicRoutepartsThrowsException ( )
uriPatternWithSuccessiveOptionalSectionsThrowsException ( )
uriPatternWithTrailingSlashThrowsException ( )
uriPatternWithUnopenedOptionalSectionsThrowsException ( )
uriPatternWithUnterminatedOptionalSectionsThrowsException ( )

Méthodes protégées

Méthode Description
routeMatchesPath ( string $routePath ) : boolean

Method Details

byDefaultRouteDoesNotResolveIfUriPatternContainsLessValuesThanAreSpecified() public méthode

compareAndRemoveMatchingDefaultValuesDataProvider() public méthode

Data provider

compareAndRemoveMatchingDefaultValuesTests() public méthode

public compareAndRemoveMatchingDefaultValuesTests ( array $defaults, array $routeValues, array $expectedModifiedRouteValues, boolean $expectedResult )
$defaults array
$routeValues array
$expectedModifiedRouteValues array
$expectedResult boolean

defaultValuesAreSetForUriPatternSegmentsWithMultipleOptionalRouteParts() public méthode

getMatchResultsReturnsCorrectResultsAfterSuccessfulMatch() public méthode

httpMethodConstraintsCanBeSetAndRetrieved() public méthode

ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated() public méthode

matchesRecursivelyMergesMatchResults() public méthode

matchesThrowsExceptionIfRoutePartValueContainsObjects() public méthode

public matchesThrowsExceptionIfRoutePartValueContainsObjects ( boolean $shouldThrowException, mixed $routePartValue )
$shouldThrowException boolean
$routePartValue mixed

matchesThrowsExceptionIfRoutePartValueContainsObjectsDataProvider() public méthode

Data provider

matchingRouteIsProperlyResolved() public méthode

parseSetsDefaultValueOfRouteParts() public méthode

parseSetsDefaultValueOfRoutePartsRecursively() public méthode

parseSetsUriPatternOfIdentityRoutePartIfSpecified() public méthode

registeredRoutePartHandlerIsInvokedWhenCallingMatch() public méthode

registeredRoutePartHandlerIsInvokedWhenCallingResolve() public méthode

resolvedUriPathIsNullAfterUnsuccessfulResolve() public méthode

resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath() public méthode

resolvesAppendsRemainingRouteValuesToResolvedUriPathIfAppendExceedingArgumentsIsTrue() public méthode

resolvesCallsCompareAndRemoveMatchingDefaultValues() public méthode

resolvesConvertsDomainObjectsToIdentityArrays() public méthode

resolvesKeepsCaseOfResolvedUriIfToLowerCaseIsFalse() public méthode

resolvesLowerCasesResolvedUriPathByDefault() public méthode

resolvesReturnsFalseIfNotAllRouteValuesCanBeResolved() public méthode

resolvesReturnsTrueIfTargetControllerExists() public méthode

resolvesThrowsExceptionIfRoutePartDefaultValueIsNoString() public méthode

resolvesThrowsExceptionIfRoutePartValueIsNoString() public méthode

routeAlwaysAppendsExceedingInternalArguments() public méthode

routeAlwaysAppendsExceedingInternalArgumentsRecursively() public méthode

routeAppendsAllAdditionalQueryParametersIfUriPatternContainsLessValuesThanAreSpecifiedIfAppendExceedingArgumentsIsTrue() public méthode

routeCanBeResolvedIfAComplexValueIsEqualToItsDefaultValue() public méthode

routeCanBeResolvedIfASpecifiedValueIsEqualToItsDefaultValue() public méthode

routeCantBeResolvedIfASpecifiedValueIsNotEqualToItsDefaultValue() public méthode

routeDoesNotMatchEmptyRequestPathIfUriPatternIsNotSet() public méthode

routeDoesNotMatchIfOneSegmentOfRequestPathIsDifferentFromItsRespectiveStaticUriPatternSegment() public méthode

routeDoesNotMatchIfRequestMethodIsNotAccepted() public méthode

routeDoesNotMatchIfRequestPathIsDifferentFromStaticUriPattern() public méthode

routeDoesNotMatchIfRequestPathIsEqualToStaticUriPatternWithoutSlashes() public méthode

routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet() public méthode

routeDoesNotMatchRequestPathContainingOnlySomeOfTheOptionalRouteParts() public méthode

routeDoesNotMatchRequestPathWithAllPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts() public méthode

routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternContainsTwoSuccessiveOptionalRouteParts() public méthode

routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() public méthode

routeDoesNotMatchRequestPathWithRequiredAndOnlyOneOptionalPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts() public méthode

routeDoesNotResolveIfRouteValuesContainAnIdentityForAnArgumentThatIsNotPartOfTheRoute() public méthode

routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalDynamicRoutePartWithDefaultValue() public méthode

routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalStaticRoutePart() public méthode

routeMatchesEmptyRequestPathIfUriPatternIsEmpty() public méthode

routeMatchesIfRequestMethodIsAccepted() public méthode

routeMatchesIfRequestPathIsEqualToStaticUriPattern() public méthode

routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault() public méthode

routeMatchesIfStaticSegmentsMatchAndASegmentExistsForAllDynamicUriPartSegments() public méthode

routeMatchesPath() protected méthode

protected routeMatchesPath ( string $routePath ) : boolean
$routePath string
Résultat boolean

routeMatchesRequestPathContainingAllOfTheOptionalRouteParts() public méthode

routeMatchesRequestPathContainingNoneOfTheOptionalRouteParts() public méthode

routeMatchesRequestPathWithAllPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart() public méthode

routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart() public méthode

routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts() public méthode

routeMatchesRequestPathWithAllPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() public méthode

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart() public méthode

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneRequiredAndOneOptionalStaticRoutePart() public méthode

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart() public méthode

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts() public méthode

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts() public méthode

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() public méthode

routePartHandlerIsInstantiated() public méthode

routeThrowsExceptionIfUriPatternContainsOneOptionalDynamicRoutePartWithoutDefaultValue() public méthode

setDefaultsAllowsToSetTheDefaultPackageControllerAndActionName() public méthode

setNameCorrectlySetsRouteName() public méthode

setUp() public méthode

Sets up this test case
public setUp ( )

settingInvalidRoutePartHandlerThrowsException() public méthode

settingUriPatternResetsRoute() public méthode

staticAndDynamicRoutesCanBeMixedInAnyOrder() public méthode

uriPatternSegmentCanContainTwoDynamicRouteParts() public méthode

uriPatternSegmentsCanContainMultipleDynamicRouteParts() public méthode

uriPatternWithLeadingSlashThrowsException() public méthode

uriPatternWithSuccessiveDynamicRoutepartsThrowsException() public méthode

uriPatternWithSuccessiveOptionalSectionsThrowsException() public méthode

uriPatternWithTrailingSlashThrowsException() public méthode

uriPatternWithUnopenedOptionalSectionsThrowsException() public méthode

uriPatternWithUnterminatedOptionalSectionsThrowsException() public méthode

Property Details

$mockObjectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockPersistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence|PHPUnit_Framework_MockObject_MockObject $mockPersistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject

$route protected_oe property

protected Route,Neos\Flow\Mvc\Routing $route
Résultat Neos\Flow\Mvc\Routing\Route

$routeValues protected_oe property

protected array $routeValues
Résultat array