Minor fixes for tests

This commit is contained in:
David Bomba 2021-07-02 20:20:46 +10:00
parent cdff2af444
commit 73a5839f16

View File

@ -14,6 +14,7 @@ use App\Models\Account;
use App\Models\Client;
use App\Models\Company;
use App\Models\Credit;
use App\Models\CreditInvitation;
use App\Models\User;
use Tests\MockUnitData;
use Tests\TestCase;
@ -28,7 +29,11 @@ class CreditBalanceTest extends TestCase
public function setUp() :void
{
parent::setUp();
Credit::all()->each(function ($credit){
$credit->forceDelete();
});
$this->makeTestData();
}