Replies: 1 comment 2 replies
-
If documentation were to be changed. I think it should add a paragraph where it explains how to make it refresh the database between each test. use RefreshDatabase;
public function setUp(): void
{
parent::setUp();
$this->refreshDatabase();
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the documentation on RefreshDatabase is not clear that it doesn't refresh between each individual test function and that it only resets the database between each test class.
There also doesn't seem to be any examples of the other traits that clear and migrate the database.
It would be so nice if each test function could start with a new database state so they are completely isolated between runs
Beta Was this translation helpful? Give feedback.
All reactions