From 3c528ca16e606db1e7e0796fc751fdf27d7e4cc4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 27 May 2021 17:21:30 +1000 Subject: [PATCH] Fixes for tests --- tests/Feature/Import/ImportCompanyTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Feature/Import/ImportCompanyTest.php b/tests/Feature/Import/ImportCompanyTest.php index 78df0958b909..1f585783d9b7 100644 --- a/tests/Feature/Import/ImportCompanyTest.php +++ b/tests/Feature/Import/ImportCompanyTest.php @@ -51,6 +51,10 @@ class ImportCompanyTest extends TestCase $this->withoutExceptionHandling(); + Account::all()->each(function ($account){ + $account->delete(); + }); + $this->account = Account::factory()->create(); $this->company = Company::factory()->create(['account_id' => $this->account->id]); }