Skip to content
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

Fix validation errors response expectation #25

Conversation

evang522
Copy link
Contributor

@evang522 evang522 commented Jun 30, 2023

Easy admin, in their most recent update: 4.6.5 -> 4.6.6 introduced a bug fix in which responses with form validation errors have a 422 code rather than a 200 code.

EasyCorp/EasyAdminBundle@ef7fed4

This means that the expected response codes here:
src/Test/Controller/EditActionTestCase.php:130
and here
src/Test/Controller/NewActionTestCase.php:97

need to be updated.

@evang522 evang522 changed the title Chore/fix validation errors response expectation Fix validation errors response expectation Jun 30, 2023
@dragosprotung
Copy link
Contributor

Thank you for the PR.

We can not upgrade to EasyAdmin version from current one because Enums are not properly supported.

So I have to keep this opened until an upgrade is possible.

See
EasyCorp/EasyAdminBundle#5740
EasyCorp/EasyAdminBundle#5641

@dragosprotung dragosprotung merged commit c2090c3 into protung:main Sep 26, 2023
@dragosprotung
Copy link
Contributor

Even if enum support is now broken, I will still merge this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants