PHP 클래스 Symfony\Bridge\Doctrine\Tests\Validator\Constraints\UniqueEntityValidatorTest

저자: Bernhard Schussek ([email protected])
상속: extends Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest
파일 보기 프로젝트 열기: symfony/symfony

보호된 프로퍼티들

프로퍼티 타입 설명
$em Doctrine\Common\Persistence\ObjectManager
$registry Doctrine\Common\Persistence\ManagerRegistry
$repository Doctrine\Common\Persistence\ObjectRepository
$repositoryFactory

공개 메소드들

메소드 설명
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 ( )

보호된 메소드들

메소드 설명
createEntityManagerMock ( $repositoryMock )
createRegistryMock ( Doctrine\Common\Persistence\ObjectManager $em = null )
createRepositoryMock ( )
createValidator ( )
setUp ( )

비공개 메소드들

메소드 설명
createSchema ( Doctrine\Common\Persistence\ObjectManager $em )

메소드 상세

createEntityManagerMock() 보호된 메소드

protected createEntityManagerMock ( $repositoryMock )

createRegistryMock() 보호된 메소드

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

createRepositoryMock() 보호된 메소드

protected createRepositoryMock ( )

createValidator() 보호된 메소드

protected createValidator ( )

resultTypesProvider() 공개 메소드

public resultTypesProvider ( )

setUp() 보호된 메소드

protected setUp ( )

testAssociatedEntity() 공개 메소드

testAssociatedEntityWithNull() 공개 메소드

testDedicatedEntityManagerNullObject() 공개 메소드

testEntityManagerNullObject() 공개 메소드

testInvalidateRepositoryForInheritance() 공개 메소드

testValidateCustomErrorPath() 공개 메소드

testValidateInheritanceUniqueness() 공개 메소드

testValidateResultTypes() 공개 메소드

public 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() 공개 메소드

프로퍼티 상세

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

protected ObjectManager,Doctrine\Common\Persistence $em
리턴 Doctrine\Common\Persistence\ObjectManager

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

protected ManagerRegistry,Doctrine\Common\Persistence $registry
리턴 Doctrine\Common\Persistence\ManagerRegistry

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

protected ObjectRepository,Doctrine\Common\Persistence $repository
리턴 Doctrine\Common\Persistence\ObjectRepository

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

protected $repositoryFactory