Symfony: refresh test database for phpunit testing with autoincrements reset on fixtures added

I want to create a fresh in memory sqlite test database to run my test against every time I run bin/phpunit. The solutions I have found so far empty the test database, but when I add the fixtures, their ids start from the last autoincremnt before the wipe.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *