diff --git a/tests/Feature/ClientPortal/CreditsTest.php b/tests/Feature/ClientPortal/CreditsTest.php index b25cdcbf28ca..78b72481211a 100644 --- a/tests/Feature/ClientPortal/CreditsTest.php +++ b/tests/Feature/ClientPortal/CreditsTest.php @@ -176,8 +176,7 @@ class CreditsTest extends TestCase ->assertSee('testing-number-02') ->assertSee('testing-number-03'); - - $user->forceDelete(); + $account->delete(); } } diff --git a/tests/Feature/ClientPortal/InvoicesTest.php b/tests/Feature/ClientPortal/InvoicesTest.php index 4a8020772c28..d1dee684023f 100644 --- a/tests/Feature/ClientPortal/InvoicesTest.php +++ b/tests/Feature/ClientPortal/InvoicesTest.php @@ -64,21 +64,21 @@ class InvoicesTest extends TestCase 'company_id' => $company->id, ]); - $sent = Invoice::factory()->for($client)->create([ + $sent = Invoice::factory()->create([ 'user_id' => $user->id, 'company_id' => $company->id, 'client_id' => $client->id, 'status_id' => Invoice::STATUS_SENT, ]); - $paid = Invoice::factory()->for($client)->create([ + $paid = Invoice::factory()->create([ 'user_id' => $user->id, 'company_id' => $company->id, 'client_id' => $client->id, 'status_id' => Invoice::STATUS_PAID, ]); - $unpaid = Invoice::factory()->for($client)->create([ + $unpaid = Invoice::factory()->create([ 'user_id' => $user->id, 'company_id' => $company->id, 'client_id' => $client->id,