RefreshDatabase trait

Posted 1 year ago by bestmomo

Hello,

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.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.