Closed HiroKX closed 11 months ago
Yup! Can you open a PR? And actually, we already have a template that is correct I think - https://github.com/symfony/maker-bundle/blob/main/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php
The bug was introduced when we removed some methods from the repository generation. So I think the fix is:
true
PR appreciated!
When generating the test associated with a controller, the
setUp
method doesn't create an instance of theEntityManager
and doesn't flush after removing all the entities in the manager.Is this expected behavior, or should we address it?
What we have now :
How i fixed it :