PHP Class Symfony\Bridge\Doctrine\Tests\Validator\Constraints\UniqueEntityValidatorTest

Author: Bernhard Schussek ([email protected])
Inheritance: extends Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest
Afficher le fichier Open project: symfony/symfony

Protected Properties

Свойство Type Description
$em Doctrine\Common\Persistence\ObjectManager
$registry Doctrine\Common\Persistence\ManagerRegistry
$repository Doctrine\Common\Persistence\ObjectRepository
$repositoryFactory

Méthodes publiques

Méthode Description
resultTypesProvider ( )
testAssociatedEntity ( )
testAssociatedEntityWithNull ( )
testDedicatedEntityManagerNullObject ( )
testEntityManagerNullObject ( )
testInvalidateRepositoryForInheritance ( )
testValidateCustomErrorPath ( )
testValidateInheritanceUniqueness ( )
testValidateResultTypes ( $entity1, $result )
testValidateUniqueness ( ) This is a functional test as there is a large integration necessary to get the validator working.
testValidateUniquenessNotToStringEntityWithAssociatedEntity ( )
testValidateUniquenessUsingCustomRepositoryMethod ( )
testValidateUniquenessWithArrayValue ( )
testValidateUniquenessWithIgnoreNull ( )
testValidateUniquenessWithNull ( )
testValidateUniquenessWithUnrewoundArray ( )
testValidateUniquenessWithValidCustomErrorPath ( )

Méthodes protégées

Méthode Description
createEntityManagerMock ( $repositoryMock )
createRegistryMock ( Doctrine\Common\Persistence\ObjectManager $em = null )
createRepositoryMock ( )
createValidator ( )
setUp ( )

Private Methods

Méthode Description
createSchema ( Doctrine\Common\Persistence\ObjectManager $em )

Method Details

createEntityManagerMock() protected méthode

protected createEntityManagerMock ( $repositoryMock )

createRegistryMock() protected méthode

protected createRegistryMock ( Doctrine\Common\Persistence\ObjectManager $em = null )
$em Doctrine\Common\Persistence\ObjectManager

createRepositoryMock() protected méthode

protected createRepositoryMock ( )

createValidator() protected méthode

protected createValidator ( )

resultTypesProvider() public méthode

public resultTypesProvider ( )

setUp() protected méthode

protected setUp ( )

testAssociatedEntity() public méthode

testAssociatedEntityWithNull() public méthode

testDedicatedEntityManagerNullObject() public méthode

testEntityManagerNullObject() public méthode

testInvalidateRepositoryForInheritance() public méthode

testValidateCustomErrorPath() public méthode

testValidateInheritanceUniqueness() public méthode

testValidateResultTypes() public méthode

public testValidateResultTypes ( $entity1, $result )

testValidateUniqueness() public méthode

This is a functional test as there is a large integration necessary to get the validator working.

testValidateUniquenessNotToStringEntityWithAssociatedEntity() public méthode

testValidateUniquenessUsingCustomRepositoryMethod() public méthode

testValidateUniquenessWithArrayValue() public méthode

testValidateUniquenessWithIgnoreNull() public méthode

testValidateUniquenessWithNull() public méthode

testValidateUniquenessWithUnrewoundArray() public méthode

testValidateUniquenessWithValidCustomErrorPath() public méthode

Property Details

$em protected_oe property

protected ObjectManager,Doctrine\Common\Persistence $em
Résultat Doctrine\Common\Persistence\ObjectManager

$registry protected_oe property

protected ManagerRegistry,Doctrine\Common\Persistence $registry
Résultat Doctrine\Common\Persistence\ManagerRegistry

$repository protected_oe property

protected ObjectRepository,Doctrine\Common\Persistence $repository
Résultat Doctrine\Common\Persistence\ObjectRepository

$repositoryFactory protected_oe property

protected $repositoryFactory