Answer the question
In order to leave comments, you need to log in
How to test private services in Symfony 5?
The documentation says that the services in testing are available. But they immediately refer to the fact that during "copying" unused ones are "deleted". And so it turns out that all the services are not available in my tests... I
redefine them as public in the "test" project for the tested bundle. But in another project, these tests will no longer run, since by default all services are private.
What to do then?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question