dmaicher / doctrine-test-bundle

Symfony bundle to isolate your app's doctrine database tests and improve the test performance
MIT License
1.08k stars 60 forks source link

Fix resetting static connections after test with data provider #244

Closed marmichalski closed 1 year ago

marmichalski commented 1 year ago

Not entirely sure if this is the best possible solution, probably not, but it seems like Test using dataProvider is treated as a TestSuite (extension is receiving Started/Finished events twice) and it resets static connection too soon :thinking:

Making the flow look like this:

dmaicher commented 1 year ago

Thank you @marmichalski