Fixes for tests

This commit is contained in:
David Bomba 2023-09-14 15:35:39 +10:00
parent 2558c4345f
commit 11496e34eb
2 changed files with 4 additions and 5 deletions

View File

@ -176,8 +176,7 @@ class CreditsTest extends TestCase
->assertSee('testing-number-02') ->assertSee('testing-number-02')
->assertSee('testing-number-03'); ->assertSee('testing-number-03');
$account->delete();
$user->forceDelete();
} }
} }

View File

@ -64,21 +64,21 @@ class InvoicesTest extends TestCase
'company_id' => $company->id, 'company_id' => $company->id,
]); ]);
$sent = Invoice::factory()->for($client)->create([ $sent = Invoice::factory()->create([
'user_id' => $user->id, 'user_id' => $user->id,
'company_id' => $company->id, 'company_id' => $company->id,
'client_id' => $client->id, 'client_id' => $client->id,
'status_id' => Invoice::STATUS_SENT, 'status_id' => Invoice::STATUS_SENT,
]); ]);
$paid = Invoice::factory()->for($client)->create([ $paid = Invoice::factory()->create([
'user_id' => $user->id, 'user_id' => $user->id,
'company_id' => $company->id, 'company_id' => $company->id,
'client_id' => $client->id, 'client_id' => $client->id,
'status_id' => Invoice::STATUS_PAID, 'status_id' => Invoice::STATUS_PAID,
]); ]);
$unpaid = Invoice::factory()->for($client)->create([ $unpaid = Invoice::factory()->create([
'user_id' => $user->id, 'user_id' => $user->id,
'company_id' => $company->id, 'company_id' => $company->id,
'client_id' => $client->id, 'client_id' => $client->id,