iamarsenibragimov's avatar

Every time I run php artisan test all raws in my tables are erased

What am I doing wrong?

0 likes
5 replies
iamarsenibragimov's avatar

@frankielee oh you are right and made my day!

use Illuminate\Foundation\Testing\RefreshDatabase;

it was in test/Pest.php

Am U right that I'm supposed to have an additional database for testing purposes? If yes then my question is how to keep them up to date with migrations. What is the right way to do so?

Please or to participate in this conversation.