I created a Symfony bundle that allows me to manage users/permissions/profiles across multiple applications. This bundle provides a set of routes, forms, services, etc.
I already have unit tests that validate the application’s functionality, but I would like to add functional tests to verify the overall behavior of the application by directly testing my routes.
How can I do this? Knowing that I don’t have a Kernel, it doesn’t seem possible to directly test the bundle. In the /tests folder, I created a /tests/TestApplication folder that contains a blank project. I’m not sure if I’m on the right track.
Should functional tests for a bundle be avoided? Do you know of any good technical documentation on this subject? I have already followed this tutorial, but unfortunately, it doesn’t go far enough on the subject: https://symfonycasts.com/screencast/symfony-bundle.
Have a good day !