PHP 클래스 Neos\Flow\Tests\Unit\Mvc\Routing\IdentityRoutePartTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$identityRoutePart Neos\Flow\Mvc\Routing\IdentityRoutePart
$mockClassSchema Neos\Flow\Reflection\ClassSchema | PHPUnit_Framework_MockObject_MockObject
$mockObjectPathMappingRepository Neos\Flow\Mvc\Routing\ObjectPathMappingRepository | PHPUnit_Framework_MockObject_MockObject
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockReflectionService Neos\Flow\Reflection\ReflectionService | PHPUnit_Framework_MockObject_MockObject

공개 메소드들

메소드 설명
createPathSegmentForObjectProvider ( ) : array data provider for createPathSegmentForObjectTests()
createPathSegmentForObjectTests ( object $object, string $uriPattern, string $expectedResult ) : void
createPathSegmentForObjectThrowsInvalidUriPatterExceptionIfItSpecifiedPropertiesContainObjects ( )
findValueToMatchProvider ( ) : array data provider for findValueToMatchTests()
findValueToMatchReturnsAnEmptyStringIfTheCalculatedUriPatternIsEmpty ( )
findValueToMatchReturnsAnEmptyStringIfTheRoutePathIsEmpty ( )
findValueToMatchReturnsAnEmptyStringIfTheSpecifiedSplitStringCantBeFoundInTheRoutePath ( )
findValueToMatchTests ( string $routePath, string $uriPattern, string $splitString, string $expectedResult ) : void
getUriPatternReturnsAnEmptyStringIfObjectTypeHasNotIdentityPropertiesAndNoPatternWasSpecified ( )
getUriPatternReturnsBasedOnTheIdentityPropertiesOfTheObjectTypeIfNoPatternWasSpecified ( )
getUriPatternReturnsTheSpecifiedUriPatternIfItsNotEmpty ( )
matchValueReturnsFalseIfNoObjectPathMappingCouldBeFound ( )
matchValueReturnsFalseIfTheGivenValueIsEmptyOrNull ( )
matchValueSetsCaseSensitiveFlagIfLowerCaseIsFalse ( )
matchValueSetsTheIdentifierOfTheObjectPathMappingAndReturnsTrueIfAMatchingObjectPathMappingWasFound ( )
matchValueSetsTheRouteValueToTheUrlDecodedPathSegmentIfNoUriPatternIsSpecified ( )
resolveValueAcceptsIdentityArrays ( )
resolveValueAppendsCounterIfCreatedPathSegmentIsEmpty ( )
resolveValueAppendsCounterIfNoMatchingObjectPathMappingWasFoundAndCreatedPathSegmentIsNotUnique ( )
resolveValueConvertsCaseOfResolvedPathSegmentIfLowerCaseIsTrue ( )
resolveValueCreatesAndStoresANewObjectPathMappingIfNoMatchingObjectPathMappingWasFound ( )
resolveValueDoesNotAcceptObjectsWithMultiValueIdentifiers ( )
resolveValueKeepsCaseOfResolvedPathSegmentIfLowerCaseIsTrue ( )
resolveValueReturnsFalseIfTheGivenValueIsNotOfTheSpecifiedType ( )
resolveValueSetsCaseSensitiveFlagIfLowerCaseIsFalse ( )
resolveValueSetsTheRouteValueToTheUrlEncodedIdentifierIfNoUriPatternIsSpecified ( ) Makes also sure that identity 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.
resolveValueSetsTheValueToThePathSegmentOfTheObjectPathMappingAndReturnsTrueIfAMatchingObjectPathMappingWasFound ( )
resolveValueThrowsInfiniteLoopExceptionIfNoUniquePathSegmentCantBeFound ( )
setUp ( ) Sets up this test case

메소드 상세

createPathSegmentForObjectProvider() 공개 메소드

data provider for createPathSegmentForObjectTests()

createPathSegmentForObjectTests() 공개 메소드

public createPathSegmentForObjectTests ( object $object, string $uriPattern, string $expectedResult ) : void
$object object
$uriPattern string
$expectedResult string
리턴 void

createPathSegmentForObjectThrowsInvalidUriPatterExceptionIfItSpecifiedPropertiesContainObjects() 공개 메소드

findValueToMatchProvider() 공개 메소드

data provider for findValueToMatchTests()
public findValueToMatchProvider ( ) : array
리턴 array

findValueToMatchReturnsAnEmptyStringIfTheCalculatedUriPatternIsEmpty() 공개 메소드

findValueToMatchReturnsAnEmptyStringIfTheRoutePathIsEmpty() 공개 메소드

findValueToMatchReturnsAnEmptyStringIfTheSpecifiedSplitStringCantBeFoundInTheRoutePath() 공개 메소드

findValueToMatchTests() 공개 메소드

public findValueToMatchTests ( string $routePath, string $uriPattern, string $splitString, string $expectedResult ) : void
$routePath string
$uriPattern string
$splitString string
$expectedResult string
리턴 void

getUriPatternReturnsAnEmptyStringIfObjectTypeHasNotIdentityPropertiesAndNoPatternWasSpecified() 공개 메소드

getUriPatternReturnsBasedOnTheIdentityPropertiesOfTheObjectTypeIfNoPatternWasSpecified() 공개 메소드

getUriPatternReturnsTheSpecifiedUriPatternIfItsNotEmpty() 공개 메소드

matchValueReturnsFalseIfNoObjectPathMappingCouldBeFound() 공개 메소드

matchValueReturnsFalseIfTheGivenValueIsEmptyOrNull() 공개 메소드

matchValueSetsCaseSensitiveFlagIfLowerCaseIsFalse() 공개 메소드

matchValueSetsTheIdentifierOfTheObjectPathMappingAndReturnsTrueIfAMatchingObjectPathMappingWasFound() 공개 메소드

matchValueSetsTheRouteValueToTheUrlDecodedPathSegmentIfNoUriPatternIsSpecified() 공개 메소드

resolveValueAcceptsIdentityArrays() 공개 메소드

resolveValueAppendsCounterIfCreatedPathSegmentIsEmpty() 공개 메소드

resolveValueAppendsCounterIfNoMatchingObjectPathMappingWasFoundAndCreatedPathSegmentIsNotUnique() 공개 메소드

resolveValueConvertsCaseOfResolvedPathSegmentIfLowerCaseIsTrue() 공개 메소드

resolveValueCreatesAndStoresANewObjectPathMappingIfNoMatchingObjectPathMappingWasFound() 공개 메소드

resolveValueDoesNotAcceptObjectsWithMultiValueIdentifiers() 공개 메소드

resolveValueKeepsCaseOfResolvedPathSegmentIfLowerCaseIsTrue() 공개 메소드

resolveValueReturnsFalseIfTheGivenValueIsNotOfTheSpecifiedType() 공개 메소드

resolveValueSetsCaseSensitiveFlagIfLowerCaseIsFalse() 공개 메소드

resolveValueSetsTheRouteValueToTheUrlEncodedIdentifierIfNoUriPatternIsSpecified() 공개 메소드

Makes also sure that identity 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.

resolveValueSetsTheValueToThePathSegmentOfTheObjectPathMappingAndReturnsTrueIfAMatchingObjectPathMappingWasFound() 공개 메소드

resolveValueThrowsInfiniteLoopExceptionIfNoUniquePathSegmentCantBeFound() 공개 메소드

setUp() 공개 메소드

Sets up this test case
public setUp ( )

프로퍼티 상세

$identityRoutePart 보호되어 있는 프로퍼티

protected IdentityRoutePart,Neos\Flow\Mvc\Routing $identityRoutePart
리턴 Neos\Flow\Mvc\Routing\IdentityRoutePart

$mockClassSchema 보호되어 있는 프로퍼티

protected ClassSchema,Neos\Flow\Reflection|PHPUnit_Framework_MockObject_MockObject $mockClassSchema
리턴 Neos\Flow\Reflection\ClassSchema | PHPUnit_Framework_MockObject_MockObject

$mockObjectPathMappingRepository 보호되어 있는 프로퍼티

protected ObjectPathMappingRepository,Neos\Flow\Mvc\Routing|PHPUnit_Framework_MockObject_MockObject $mockObjectPathMappingRepository
리턴 Neos\Flow\Mvc\Routing\ObjectPathMappingRepository | PHPUnit_Framework_MockObject_MockObject

$mockPersistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence|PHPUnit_Framework_MockObject_MockObject $mockPersistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockReflectionService 보호되어 있는 프로퍼티

protected ReflectionService,Neos\Flow\Reflection|PHPUnit_Framework_MockObject_MockObject $mockReflectionService
리턴 Neos\Flow\Reflection\ReflectionService | PHPUnit_Framework_MockObject_MockObject