RefreshDatabase trait

Posted 9 months 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.

Laracasts Mascot

Hi, Have We Met Yet?

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.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.