From 327c2f240cad0b4174e0dd8a247b2f8d85e0a3f1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 21 Feb 2023 07:39:36 +1100 Subject: [PATCH] Fixes for tests --- tests/Feature/CompanySettingsTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Feature/CompanySettingsTest.php b/tests/Feature/CompanySettingsTest.php index 1e85815730..daeea2b304 100644 --- a/tests/Feature/CompanySettingsTest.php +++ b/tests/Feature/CompanySettingsTest.php @@ -12,12 +12,14 @@ namespace Tests\Feature; use Tests\TestCase; use App\Models\Company; +use App\Models\Activity; use Tests\MockAccountData; use App\Utils\Traits\MakesHash; use App\DataMapper\CompanySettings; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Session; use Illuminate\Validation\ValidationException; +use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\DatabaseTransactions; /** @@ -27,8 +29,9 @@ use Illuminate\Foundation\Testing\DatabaseTransactions; class CompanySettingsTest extends TestCase { use MakesHash; - use DatabaseTransactions; + // use DatabaseTransactions; use MockAccountData; + use RefreshDatabase; public function setUp() :void { @@ -180,7 +183,6 @@ class CompanySettingsTest extends TestCase public function testCompanyNullValueMatrixPOST() { - Company::truncate(); $settings = CompanySettings::defaults(); $settings->reset_counter_date = null;