[Form] Fix not-BC test assertion
This commit is contained in:
parent
86b218ec0e
commit
5ef7ae9647
@ -216,14 +216,6 @@ abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCa
|
||||
|
||||
protected function expectValidateAt($i, $propertyPath, $value, $group)
|
||||
{
|
||||
switch ($this->getApiVersion()) {
|
||||
case Validation::API_VERSION_2_4:
|
||||
$this->context->expects($this->at($i))
|
||||
->method('validate')
|
||||
->with($value, $propertyPath, $group);
|
||||
break;
|
||||
case Validation::API_VERSION_2_5:
|
||||
case Validation::API_VERSION_2_5_BC:
|
||||
$validator = $this->context->getValidator()->inContext($this->context);
|
||||
$validator->expects($this->at(2 * $i))
|
||||
->method('atPath')
|
||||
@ -232,8 +224,6 @@ abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCa
|
||||
$validator->expects($this->at(2 * $i + 1))
|
||||
->method('validate')
|
||||
->with($value, $this->logicalOr(null, array(), $this->isInstanceOf('\Symfony\Component\Validator\Constraints\Valid')), $group);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected function expectValidateValueAt($i, $propertyPath, $value, $constraints, $group = null)
|
||||
|
Reference in New Issue
Block a user