I use RefreshDatabase trait in Testcase.php but this doesn't work, not hit on trait and no database refresh.
I use this in phpunit.xml :
<env name="DB_CONNECTION" value="sqlite"/> <env name="DB_DATABASE" value=":memory:"/>
This was working on a previous project but not my new one, I use Laravel 5.6.
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.