In a Laravel/PHPunit test class I added use RefreshDatabase
to the class, I understand this should make it so that changes to the database during a test get reverted when the test finishes.
But whenever I run the tests in the class, all tables in the database get dropped, and the tests fail (because the tables don't exist!).
The docs suggest that getting the db to revert after a test is as simple as adding the one line as I did, am I missing something?