From 306838c417604375c071cf091f02fb814ccebf2a Mon Sep 17 00:00:00 2001 From: = Date: Tue, 2 Feb 2021 19:51:12 +1100 Subject: [PATCH] Fixes for tests --- app/Mail/TemplateEmail.php | 1 + tests/Integration/CompanyLedgerTest.php | 2 +- tests/MockAccountData.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Mail/TemplateEmail.php b/app/Mail/TemplateEmail.php index 9b29482186e5..cfe1fa87b10c 100644 --- a/app/Mail/TemplateEmail.php +++ b/app/Mail/TemplateEmail.php @@ -12,6 +12,7 @@ namespace App\Mail; use App\Models\Client; +use App\Models\ClientContact; use App\Models\User; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; diff --git a/tests/Integration/CompanyLedgerTest.php b/tests/Integration/CompanyLedgerTest.php index 9ab4af695746..9397fb1b3b42 100644 --- a/tests/Integration/CompanyLedgerTest.php +++ b/tests/Integration/CompanyLedgerTest.php @@ -51,7 +51,7 @@ class CompanyLedgerTest extends TestCase $this->withoutExceptionHandling(); - $this->artisan('db:seed'); + $this->artisan('db:seed --force'); /* Warm up the cache !*/ $cached_tables = config('ninja.cached_tables'); diff --git a/tests/MockAccountData.php b/tests/MockAccountData.php index d6c393f535ee..d27d691a0582 100644 --- a/tests/MockAccountData.php +++ b/tests/MockAccountData.php @@ -131,7 +131,7 @@ trait MockAccountData /* Warm up the cache !*/ $cached_tables = config('ninja.cached_tables'); - $this->artisan('db:seed'); + $this->artisan('db:seed --force'); foreach ($cached_tables as $name => $class) {