Skip to content

Commit 234011d

Browse files
committed
minor symfony#17536 [Form] fix tests (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [Form] fix tests | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- e791fa0 [Form] fix tests
2 parents 7e000a0 + e791fa0 commit 234011d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ public function testMissingConstraintIndex()
135135
$form = new FormBuilder('name', '\stdClass', $this->dispatcher, $this->factory);
136136
$form = $form->setData($object)->getForm();
137137

138+
$this->expectValidateAt(0, 'data', $object, 'Default');
139+
138140
$this->validator->validate($form, new Form());
139141

140142
$this->assertNoViolation();

0 commit comments

Comments
 (0)