-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] rework form validator tests #37104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
'constraints' => [new NotBlank(['groups' => 'group1'])], | ||
'property_path' => '[foo]', | ||
]) | ||
->add('field2', null, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While working on #37085 I realised that we couldn't add this second field and assert its constraints are not validated. Investigating the cause for it I found out that the default ConstraintValidatorTestCase
is not well suited for these kinds of tests where we cascade validation to nested fields.
f19d821
to
be4151b
Compare
2fbf8f5
to
f062e08
Compare
ping @symfony/mergers This is blocking #37103. :) |
This looks good to me, but Travis isn't running here, does anyone know why? |
f062e08
to
a4ecec5
Compare
Well, it looks like yes https://travis-ci.org/github/symfony/symfony/builds/696496883, but my github UI isn't displaying it 😕 |
Thank you @xabbuh. |
This PR was merged into the 3.4 branch. Discussion ---------- [Form] rework form validator tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This will allow writing tests for #37103. Commits ------- f062e08 rework form validator tests
This will allow writing tests for #37103.