PHP Class Symfony\Component\Form\Tests\Extension\Validator\ViolationMapper\ViolationMapperTest

Author: Bernhard Schussek ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/symfony

Public Methods

Method Description
provideCustomDataErrorTests ( )
provideCustomFormErrorTests ( )
provideDefaultTests ( )
provideErrorTestsForFormInheritingParentData ( )
testAbortDotRuleMappingIfNotSubmitted ( )
testAbortDotRuleMappingIfNotSynchronized ( )
testAbortMappingIfNotSubmitted ( )
testAbortMappingIfNotSynchronized ( )
testBacktrackIfSeveralSubFormsWithSamePropertyPath ( )
testCustomDataErrorMapping ( $target, $mapFrom, $mapTo, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testCustomFormErrorMapping ( $target, $mapFrom, $mapTo, $errorName, $errorPath, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testDefaultErrorMapping ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testErrorMappingForFormInheritingParentData ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )
testFollowDotRules ( )
testMapToFormInheritingParentDataIfDataDoesNotMatch ( )

Protected Methods

Method Description
getConstraintViolation ( $propertyPath ) : ConstraintViolation
getForm ( $name = 'name', $propertyPath = null, $dataClass = null, $errorMapping = [], $inheritData = false, $synchronized = true )
getFormError ( Symfony\Component\Validator\ConstraintViolationInterface $violation, Symfony\Component\Form\FormInterface $form ) : FormError
setUp ( )

Private Methods

Method Description
getDataMapper ( ) : PHPUnit_Framework_MockObject_MockObject

Method Details

getConstraintViolation() protected method

protected getConstraintViolation ( $propertyPath ) : ConstraintViolation
$propertyPath
return Symfony\Component\Validator\ConstraintViolation

getForm() protected method

protected getForm ( $name = 'name', $propertyPath = null, $dataClass = null, $errorMapping = [], $inheritData = false, $synchronized = true )

getFormError() protected method

protected getFormError ( Symfony\Component\Validator\ConstraintViolationInterface $violation, Symfony\Component\Form\FormInterface $form ) : FormError
$violation Symfony\Component\Validator\ConstraintViolationInterface
$form Symfony\Component\Form\FormInterface
return Symfony\Component\Form\FormError

provideCustomDataErrorTests() public method

provideCustomFormErrorTests() public method

provideDefaultTests() public method

public provideDefaultTests ( )

provideErrorTestsForFormInheritingParentData() public method

setUp() protected method

protected setUp ( )

testAbortDotRuleMappingIfNotSubmitted() public method

testAbortDotRuleMappingIfNotSynchronized() public method

testAbortMappingIfNotSubmitted() public method

testAbortMappingIfNotSynchronized() public method

testBacktrackIfSeveralSubFormsWithSamePropertyPath() public method

testCustomDataErrorMapping() public method

public testCustomDataErrorMapping ( $target, $mapFrom, $mapTo, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testCustomFormErrorMapping() public method

public testCustomFormErrorMapping ( $target, $mapFrom, $mapTo, $errorName, $errorPath, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testDefaultErrorMapping() public method

public testDefaultErrorMapping ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testErrorMappingForFormInheritingParentData() public method

public testErrorMappingForFormInheritingParentData ( $target, $childName, $childPath, $grandChildName, $grandChildPath, $violationPath )

testFollowDotRules() public method

public testFollowDotRules ( )

testMapToFormInheritingParentDataIfDataDoesNotMatch() public method