api-platform / demo

Demo app for the API Platform framework
https://demo.api-platform.com
MIT License
295 stars 197 forks source link

test: test that an options request on root endpoint is successfull #434

Closed BacLuc closed 1 month ago

BacLuc commented 1 month ago

Related to https://github.com/api-platform/core/issues/6455 It is more or less the same test as in https://github.com/ecamp/ecamp3/blob/3cd279fd1c1367287ea989f38f7238f93026e4b4/api/tests/Api/RootTest.php

Q A
Branch? main
Tickets
License MIT
Doc PR

This is a test that tests the OPTIONS request on the root endpoint. I did not know where to add this in https://github.com/api-platform/core So i added the test here that a possible issue is detected a little earlier.

vincentchalamon commented 1 month ago

Hi @BacLuc,

Thank you for such contribution. However, even if the tests are green, I don't see the point of such test in this project as it's a feature covered by Nelmio.