From b01bf53fca6a4696fac23f5397282cc36873c335 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 24 Dec 2022 01:42:57 +1100 Subject: [PATCH] Fixes for tests --- tests/Feature/ClientPortal/CreditsTest.php | 4 ++-- tests/Feature/ClientPortal/InvoicesTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Feature/ClientPortal/CreditsTest.php b/tests/Feature/ClientPortal/CreditsTest.php index 178a766b6b2e..a579a9fd1bf1 100644 --- a/tests/Feature/ClientPortal/CreditsTest.php +++ b/tests/Feature/ClientPortal/CreditsTest.php @@ -100,7 +100,7 @@ class CreditsTest extends TestCase $c2->load('client'); $c3->load('client'); - Livewire::test(CreditsTable::class, ['company' => $company]) + Livewire::test(CreditsTable::class, ['company_id' => $company->id, 'db' => $company->db]) ->assertDontSee('testing-number-01') ->assertSee('testing-number-02') ->assertSee('testing-number-03'); @@ -167,7 +167,7 @@ class CreditsTest extends TestCase $this->actingAs($client->contacts->first(), 'contact'); - Livewire::test(CreditsTable::class, ['company' => $company]) + Livewire::test(CreditsTable::class, ['company_id' => $company->id, 'db' => $company->db]) ->assertSee('testing-number-01') ->assertSee('testing-number-02') ->assertSee('testing-number-03'); diff --git a/tests/Feature/ClientPortal/InvoicesTest.php b/tests/Feature/ClientPortal/InvoicesTest.php index 084961223df3..1abde1419a12 100644 --- a/tests/Feature/ClientPortal/InvoicesTest.php +++ b/tests/Feature/ClientPortal/InvoicesTest.php @@ -86,12 +86,12 @@ class InvoicesTest extends TestCase $this->actingAs($client->contacts->first(), 'contact'); - Livewire::test(InvoicesTable::class, ['company' => $company]) + Livewire::test(InvoicesTable::class, ['company_id' => $company->id, 'db' => $db]) ->assertSee($sent->number) ->assertSee($paid->number) ->assertSee($unpaid->number); - Livewire::test(InvoicesTable::class, ['company' => $company]) + Livewire::test(InvoicesTable::class, ['company_id' => $company->id, 'db' => $db]) ->set('status', ['paid']) ->assertSee($paid->number) ->assertDontSee($unpaid->number);