|
15 | 15 | require_once __DIR__.'/Fixtures/FailingConstraint.php';
|
16 | 16 | require_once __DIR__.'/Fixtures/FailingConstraintValidator.php';
|
17 | 17 | require_once __DIR__.'/Fixtures/FakeClassMetadataFactory.php';
|
18 |
| -require_once __DIR__.'/Fixtures/DynamicConstraintsEntity.php'; |
19 | 18 |
|
20 | 19 | use Symfony\Tests\Component\Validator\Fixtures\Entity;
|
21 | 20 | use Symfony\Tests\Component\Validator\Fixtures\FakeClassMetadataFactory;
|
22 | 21 | use Symfony\Tests\Component\Validator\Fixtures\FailingConstraint;
|
23 |
| -use Symfony\Tests\Component\Validator\Fixtures\DynamicConstraintsEntity; |
24 | 22 | use Symfony\Component\Validator\Validator;
|
25 | 23 | use Symfony\Component\Validator\ConstraintViolation;
|
26 | 24 | use Symfony\Component\Validator\ConstraintViolationList;
|
@@ -123,38 +121,6 @@ public function testValidate_multipleGroups()
|
123 | 121 |
|
124 | 122 | $this->assertEquals($violations, $result);
|
125 | 123 | }
|
126 |
| - |
127 |
| - public function testValidate_constraintProvider() |
128 |
| - { |
129 |
| - $entity = new DynamicConstraintsEntity(); |
130 |
| - $metadata = new ClassMetadata(get_class($entity)); |
131 |
| - $this->factory->addClassMetadata($metadata); |
132 |
| - |
133 |
| - $entity->setValidation(true); |
134 |
| - |
135 |
| - $violations = new ConstraintViolationList(); |
136 |
| - $violations->add(new ConstraintViolation( |
137 |
| - '', |
138 |
| - array(), |
139 |
| - $entity, |
140 |
| - 'firstValue', |
141 |
| - '' |
142 |
| - )); |
143 |
| - $violations->add(new ConstraintViolation( |
144 |
| - '', |
145 |
| - array(), |
146 |
| - $entity, |
147 |
| - 'secondValue', |
148 |
| - '' |
149 |
| - )); |
150 |
| - |
151 |
| - $this->assertEquals($violations, $this->validator->validate($entity)); |
152 |
| - |
153 |
| - $entity->setValidation(false); |
154 |
| - |
155 |
| - $violations = new ConstraintViolationList(); |
156 |
| - $this->assertEquals($violations, $this->validator->validate($entity)); |
157 |
| - } |
158 | 124 |
|
159 | 125 | public function testValidateProperty()
|
160 | 126 | {
|
|
0 commit comments