Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
xabbuh wants to merge1 commit intosymfony:3.4fromxabbuh:form-validator-tests

Conversation

@xabbuh
Copy link
Member

@xabbuhxabbuh commentedJun 4, 2020
edited
Loading

QA
Branch?3.4
Bug fix?no
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

This will allow writing tests for#37103.

'constraints' => [new NotBlank(['groups' => 'group1'])],
'property_path' => '[foo]',
])
->add('field2', null, [
Copy link
MemberAuthor

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 defaultConstraintValidatorTestCase is not well suited for these kinds of tests where we cascade validation to nested fields.

@xabbuhxabbuhforce-pushed theform-validator-tests branch fromf19d821 tobe4151bCompareJune 4, 2020 20:14
@xabbuhxabbuh marked this pull request as ready for reviewJune 5, 2020 06:24
@xabbuhxabbuhforce-pushed theform-validator-tests branch 2 times, most recently from2fbf8f5 tof062e08CompareJune 9, 2020 14:48
@xabbuh
Copy link
MemberAuthor

ping @symfony/mergers This is blocking#37103. :)

@yceruto
Copy link
Member

This looks good to me, but Travis isn't running here, does anyone know why?

@xabbuhxabbuhforce-pushed theform-validator-tests branch fromf062e08 toa4ecec5CompareJune 9, 2020 15:03
@yceruto
Copy link
Member

Well, it looks like yeshttps://travis-ci.org/github/symfony/symfony/builds/696496883, but my github UI isn't displaying it 😕

@fabpot
Copy link
Member

Thank you@xabbuh.

fabpot added a commit that referenced this pull requestJun 9, 2020
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
@xabbuhxabbuh closed thisJun 9, 2020
@xabbuhxabbuh deleted the form-validator-tests branchJune 9, 2020 15:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@xabbuh@yceruto@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp