The documentation lacks info about what the RefreshDatabase trait does #35025
-
In my unit tests I need to use models which rely on different database connections. In the tests I'm using the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It is equivalent to the following:
|
Beta Was this translation helpful? Give feedback.
-
Created PR which will add this info to the docs laravel/docs#6540 |
Beta Was this translation helpful? Give feedback.
It is equivalent to the following:
php artisan migrate:fresh
on your default connection (per yourphpunit.xml
with fallback to app default) +