Sylius / SyliusAdminApiBundle

Administration REST API for Sylius eCommerce.
MIT License
11 stars 22 forks source link

Fix broken tests #11

Closed 4c0n closed 2 years ago

4c0n commented 2 years ago

The exception normalizing/flattening behavior has changed in 3.1.0 causing exceptions to be rendered as RFC 7807 type responses instead of the legacy output that the tests expect.

https://github.com/FriendsOfSymfony/FOSRestBundle/compare/3.0.5..3.1.0

Serializer/Normalizer/FlattenExceptionNormalizer.php around line 78.

That is causing the tests to fail along with DBAL v3 no longer supporting the json_array type that Sylius uses. Introducing these conflicts solves the problems for now.

4c0n commented 2 years ago

@lchrusciel Could you please approve the workflow?

Zales0123 commented 2 years ago

Not needed after support for 1.9 dropped 🖖 Thank you, Youri!