You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#44473 [Validator] Restore default locale in ConstraintValidatorTestCase (rodnaph)
This PR was merged into the 4.4 branch.
Discussion
----------
[Validator] Restore default locale in ConstraintValidatorTestCase
| Q | A
| ------------- | ---
| Branch? | 6.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | N/A
| License | MIT
| Doc PR | N/A
Previously this code was not resetting the locale after changing it to `en` - which affected other tests which relied on this value being the configured value (however it was configured).
This mirrors the pattern used for the timezone, storing it to be reset on tearDown.
I've based this on 6.1. If it's valid, I'm unsure if it's classed a bug, or needs UPGRADE notes?
Commits
-------
77267c0 restore the overriden locale on tearDown - avoid interfering with any configured value
0 commit comments