PHP Class Neos\Flow\Tests\Unit\Validation\ValidatorResolverTest

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

Protected Properties

Property Type Description
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$mockReflectionService Neos\Flow\Reflection\ReflectionService
$validatorResolver Neos\Flow\Validation\ValidatorResolver

Public Methods

Method Description
addCustomValidatorsAddsExpectedPolyTypeValidatorToTheConjunction ( )
buildBaseValidatorCachesTheResultOfTheBuildBaseValidatorConjunctionCalls ( )
buildBaseValidatorConjunctionAddsCustomValidatorToTheReturnedConjunction ( )
buildBaseValidatorConjunctionAddsValidatorsDefinedByAnnotationsInTheClassToTheReturnedConjunction ( )
buildBaseValidatorConjunctionAddsValidatorsOnlyForPropertiesHoldingPrototypes ( )
buildBaseValidatorConjunctionBuildsCorrectValidationChainForCyclicRelations ( )
buildBaseValidatorConjunctionReturnsNullIfNoValidatorBuilt ( )
buildBaseValidatorConjunctionSkipsPropertiesAnnotatedWithIgnoreValidation ( )
buildMethodArgumentsValidatorConjunctionsBuildsAConjunctionFromValidateAnnotationsOfTheSpecifiedMethod ( )
buildMethodArgumentsValidatorConjunctionsReturnsEmptyArrayIfMethodHasNoArguments ( )
buildMethodArgumentsValidatorConjunctionsReturnsEmptyConjunctionIfNoValidatorIsFoundForMethodParameter ( )
buildMethodArgumentsValidatorConjunctionsThrowsExceptionIfValidationAnnotationForNonExistingArgumentExists ( )
createValidatorResolvesAndReturnsAValidatorAndPassesTheGivenOptions ( )
createValidatorReturnsNullIfAValidatorCouldNotBeResolved ( )
createValidatorThrowsExceptionForSingletonValidatorsWithOptions ( )
getValidatorTypeCorrectlyRenamesPhpDataTypes ( )
getValidatorTypeRenamesMixedToRaw ( )
resetEmptiesBaseValidatorConjunctions ( )
resolveValidatorObjectNameCallsGetValidatorType ( )
resolveValidatorObjectNameCanResolveShortNamesOfBuiltInValidators ( )
resolveValidatorObjectNameCanResolveShorthandValidatornames ( )
resolveValidatorObjectNameCanResolveShorthandValidatornamesForHierarchicalPackages ( )
resolveValidatorObjectNameRemovesALeadingBackslashFromThePassedType ( )
resolveValidatorObjectNameReturnsFalseIfAnObjectOfTheArgumentNameIsRegisteredButDoesNotImplementValidatorInterface ( )
resolveValidatorObjectNameReturnsFalseIfValidatorCantBeResolved ( )
resolveValidatorObjectNameReturnsTheGivenArgumentIfAnObjectOfThatNameIsRegisteredAndImplementsValidatorInterface ( )
resolveValidatorObjectNameReturnsValidatorObjectNameIfAnObjectOfTheArgumentNameIsRegisteredAndDoesNotImplementValidatorInterfaceAndAValidatorForTheObjectExists ( )
setUp ( )

Method Details

addCustomValidatorsAddsExpectedPolyTypeValidatorToTheConjunction() public method

buildBaseValidatorCachesTheResultOfTheBuildBaseValidatorConjunctionCalls() public method

buildBaseValidatorConjunctionAddsCustomValidatorToTheReturnedConjunction() public method

buildBaseValidatorConjunctionAddsValidatorsDefinedByAnnotationsInTheClassToTheReturnedConjunction() public method

buildBaseValidatorConjunctionAddsValidatorsOnlyForPropertiesHoldingPrototypes() public method

buildBaseValidatorConjunctionBuildsCorrectValidationChainForCyclicRelations() public method

buildBaseValidatorConjunctionReturnsNullIfNoValidatorBuilt() public method

buildBaseValidatorConjunctionSkipsPropertiesAnnotatedWithIgnoreValidation() public method

buildMethodArgumentsValidatorConjunctionsBuildsAConjunctionFromValidateAnnotationsOfTheSpecifiedMethod() public method

buildMethodArgumentsValidatorConjunctionsReturnsEmptyArrayIfMethodHasNoArguments() public method

buildMethodArgumentsValidatorConjunctionsReturnsEmptyConjunctionIfNoValidatorIsFoundForMethodParameter() public method

buildMethodArgumentsValidatorConjunctionsThrowsExceptionIfValidationAnnotationForNonExistingArgumentExists() public method

createValidatorResolvesAndReturnsAValidatorAndPassesTheGivenOptions() public method

createValidatorReturnsNullIfAValidatorCouldNotBeResolved() public method

createValidatorThrowsExceptionForSingletonValidatorsWithOptions() public method

getValidatorTypeCorrectlyRenamesPhpDataTypes() public method

getValidatorTypeRenamesMixedToRaw() public method

resetEmptiesBaseValidatorConjunctions() public method

resolveValidatorObjectNameCallsGetValidatorType() public method

resolveValidatorObjectNameCanResolveShortNamesOfBuiltInValidators() public method

resolveValidatorObjectNameCanResolveShorthandValidatornames() public method

resolveValidatorObjectNameCanResolveShorthandValidatornamesForHierarchicalPackages() public method

resolveValidatorObjectNameRemovesALeadingBackslashFromThePassedType() public method

resolveValidatorObjectNameReturnsFalseIfAnObjectOfTheArgumentNameIsRegisteredButDoesNotImplementValidatorInterface() public method

resolveValidatorObjectNameReturnsFalseIfValidatorCantBeResolved() public method

resolveValidatorObjectNameReturnsTheGivenArgumentIfAnObjectOfThatNameIsRegisteredAndImplementsValidatorInterface() public method

resolveValidatorObjectNameReturnsValidatorObjectNameIfAnObjectOfTheArgumentNameIsRegisteredAndDoesNotImplementValidatorInterfaceAndAValidatorForTheObjectExists() public method

setUp() public method

public setUp ( )

Property Details

$mockObjectManager protected property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $mockObjectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$mockReflectionService protected property

protected ReflectionService,Neos\Flow\Reflection $mockReflectionService
return Neos\Flow\Reflection\ReflectionService

$validatorResolver protected property

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
return Neos\Flow\Validation\ValidatorResolver