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

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

Protected Properties

Свойство Type Description
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$mockReflectionService Neos\Flow\Reflection\ReflectionService
$validatorResolver Neos\Flow\Validation\ValidatorResolver

Méthodes publiques

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

buildBaseValidatorCachesTheResultOfTheBuildBaseValidatorConjunctionCalls() public méthode

buildBaseValidatorConjunctionAddsCustomValidatorToTheReturnedConjunction() public méthode

buildBaseValidatorConjunctionAddsValidatorsDefinedByAnnotationsInTheClassToTheReturnedConjunction() public méthode

buildBaseValidatorConjunctionAddsValidatorsOnlyForPropertiesHoldingPrototypes() public méthode

buildBaseValidatorConjunctionBuildsCorrectValidationChainForCyclicRelations() public méthode

buildBaseValidatorConjunctionReturnsNullIfNoValidatorBuilt() public méthode

buildBaseValidatorConjunctionSkipsPropertiesAnnotatedWithIgnoreValidation() public méthode

buildMethodArgumentsValidatorConjunctionsBuildsAConjunctionFromValidateAnnotationsOfTheSpecifiedMethod() public méthode

buildMethodArgumentsValidatorConjunctionsReturnsEmptyArrayIfMethodHasNoArguments() public méthode

buildMethodArgumentsValidatorConjunctionsReturnsEmptyConjunctionIfNoValidatorIsFoundForMethodParameter() public méthode

buildMethodArgumentsValidatorConjunctionsThrowsExceptionIfValidationAnnotationForNonExistingArgumentExists() public méthode

createValidatorResolvesAndReturnsAValidatorAndPassesTheGivenOptions() public méthode

createValidatorReturnsNullIfAValidatorCouldNotBeResolved() public méthode

createValidatorThrowsExceptionForSingletonValidatorsWithOptions() public méthode

getValidatorTypeCorrectlyRenamesPhpDataTypes() public méthode

getValidatorTypeRenamesMixedToRaw() public méthode

resetEmptiesBaseValidatorConjunctions() public méthode

resolveValidatorObjectNameCallsGetValidatorType() public méthode

resolveValidatorObjectNameCanResolveShortNamesOfBuiltInValidators() public méthode

resolveValidatorObjectNameCanResolveShorthandValidatornames() public méthode

resolveValidatorObjectNameCanResolveShorthandValidatornamesForHierarchicalPackages() public méthode

resolveValidatorObjectNameRemovesALeadingBackslashFromThePassedType() public méthode

resolveValidatorObjectNameReturnsFalseIfAnObjectOfTheArgumentNameIsRegisteredButDoesNotImplementValidatorInterface() public méthode

resolveValidatorObjectNameReturnsFalseIfValidatorCantBeResolved() public méthode

resolveValidatorObjectNameReturnsTheGivenArgumentIfAnObjectOfThatNameIsRegisteredAndImplementsValidatorInterface() public méthode

resolveValidatorObjectNameReturnsValidatorObjectNameIfAnObjectOfTheArgumentNameIsRegisteredAndDoesNotImplementValidatorInterfaceAndAValidatorForTheObjectExists() public méthode

setUp() public méthode

public setUp ( )

Property Details

$mockObjectManager protected_oe property

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

$mockReflectionService protected_oe property

protected ReflectionService,Neos\Flow\Reflection $mockReflectionService
Résultat Neos\Flow\Reflection\ReflectionService

$validatorResolver protected_oe property

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
Résultat Neos\Flow\Validation\ValidatorResolver