8000 expand test to ensure sequences stop after failing validation group · symfony/symfony@f19d821 · GitHub
[go: up one dir, main page]

Skip to content

Commit f19d821

Browse files
committed
expand test to ensure sequences stop after failing validation group
1 parent 803e1de commit f19d821

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,15 @@ public function testCascadeValidationToChildFormsUsingPropertyPathsValidatedInSe
142142
'constraints' => [new NotBlank(['groups' => 'group1'])],
143143
'property_path' => '[foo]',
144144
])
145+
->add('field2', null, [
146+
'constraints' => [new NotBlank(['groups' => 'group2'])],
147+
'property_path' => '[bar]',
148+
])
145149
;
146150

147151
$form->submit([
148152
'field1' => '',
153+
'field2' => '',
149154
]);
150155

151156
$violations = $this->validator->validate($form);

0 commit comments

Comments
 (0)
0