diff --git a/tests/Commands/User/CheckUserEmailExistTest.php b/tests/Commands/User/CheckUserEmailExistTest.php index 8d94da04..9ec58ee4 100644 --- a/tests/Commands/User/CheckUserEmailExistTest.php +++ b/tests/Commands/User/CheckUserEmailExistTest.php @@ -4,14 +4,12 @@ use App\Services\WikiUserEmailChecker; use App\User; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Mockery; use Tests\TestCase; class CheckUserEmailExistTest extends TestCase { - protected function tearDown(): void { - // delete all users - User::query()->delete(); - } + use DatabaseTransactions; public function testItFindsEmailInApiUsersTable() { User::factory()->create([