-
Notifications
You must be signed in to change notification settings - Fork 19
IBX-11029: Fixed tests #1790
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
IBX-11029: Fixed tests #1790
Conversation
fc74261 to
5e334b3
Compare
…. Adjusted related test coverage.
b38adf9 to
2840c90
Compare
ViniTou
left a comment
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.
guess we can use numeric-string instead of string in those cases
Yes, I can switch to numeric-string, but PHPStan will still warn because numeric-string is always a string — so is_string() is seen as redundant. |
| new FormErrorDataTestWrapper( | ||
| 'The selected choice is invalid.', | ||
| ['{{ value }}' => 'foo'], | ||
| 'children[limitation_type]' | ||
| ), |
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.
That codifies duplicate validation instead of addressing it. If the form only needs one message, this change will hide a regression and could show users two identical errors. But maybe it is not the case at all. What about changing the message in the second form error?
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.
I checked it — error_bubbling => false doesn’t change anything. Symfony 7.3 now produces two errors for expanded choice fields, so the duplication is expected.
… expectations in all relevant data transformers and tests for improved clarity.
|



Description:
For QA:
Documentation: