mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:44:31 -04:00
Merge pull request #6190 from turbo124/v5-develop
Minor fixes for tests
This commit is contained in:
commit
38d0711bf1
@ -14,6 +14,7 @@ use App\Models\Account;
|
|||||||
use App\Models\Client;
|
use App\Models\Client;
|
||||||
use App\Models\Company;
|
use App\Models\Company;
|
||||||
use App\Models\Credit;
|
use App\Models\Credit;
|
||||||
|
use App\Models\CreditInvitation;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Tests\MockUnitData;
|
use Tests\MockUnitData;
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
@ -28,7 +29,11 @@ class CreditBalanceTest extends TestCase
|
|||||||
public function setUp() :void
|
public function setUp() :void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
Credit::all()->each(function ($credit){
|
||||||
|
$credit->forceDelete();
|
||||||
|
});
|
||||||
|
|
||||||
$this->makeTestData();
|
$this->makeTestData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user