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

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

Protected Properties

Property Type Description
$em Doctrine\Common\Persistence\ObjectManager
$registry Doctrine\Common\Persistence\ManagerRegistry
$repository Doctrine\Common\Persistence\ObjectRepository
$repositoryFactory

Public Methods

Method 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 ( )

Protected Methods

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

Private Methods

Method Description
createSchema ( Doctrine\Common\Persistence\ObjectManager $em )

Method Details

createEntityManagerMock() protected method

protected createEntityManagerMock ( $repositoryMock )

createRegistryMock() protected method

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

createRepositoryMock() protected method

protected createRepositoryMock ( )

createValidator() protected method

protected createValidator ( )

resultTypesProvider() public method

public resultTypesProvider ( )

setUp() protected method

protected setUp ( )

testAssociatedEntity() public method

testAssociatedEntityWithNull() public method

testDedicatedEntityManagerNullObject() public method

testEntityManagerNullObject() public method

testInvalidateRepositoryForInheritance() public method

testValidateCustomErrorPath() public method

testValidateInheritanceUniqueness() public method

testValidateResultTypes() public method

public testValidateResultTypes ( $entity1, $result )

testValidateUniqueness() public method

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

testValidateUniquenessNotToStringEntityWithAssociatedEntity() public method

testValidateUniquenessUsingCustomRepositoryMethod() public method

testValidateUniquenessWithArrayValue() public method

testValidateUniquenessWithIgnoreNull() public method

testValidateUniquenessWithNull() public method

testValidateUniquenessWithUnrewoundArray() public method

testValidateUniquenessWithValidCustomErrorPath() public method

Property Details

$em protected_oe property

protected ObjectManager,Doctrine\Common\Persistence $em
return Doctrine\Common\Persistence\ObjectManager

$registry protected_oe property

protected ManagerRegistry,Doctrine\Common\Persistence $registry
return Doctrine\Common\Persistence\ManagerRegistry

$repository protected_oe property

protected ObjectRepository,Doctrine\Common\Persistence $repository
return Doctrine\Common\Persistence\ObjectRepository

$repositoryFactory protected_oe property

protected $repositoryFactory