From 1d941f3298c3dde56b501842d5c84dcbb36ad90e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 28 Jan 2026 00:20:58 +1100 Subject: [PATCH] fixes for tests --- tests/Feature/SubscriptionApiTest.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/Feature/SubscriptionApiTest.php b/tests/Feature/SubscriptionApiTest.php index bc2726a7f4..c596cc3321 100644 --- a/tests/Feature/SubscriptionApiTest.php +++ b/tests/Feature/SubscriptionApiTest.php @@ -174,9 +174,11 @@ class SubscriptionApiTest extends TestCase // nlog($i->count()); // nlog($i->toArray()); - } - $this->assertFalse($i); + $this->assertCount(0, $i); + } + else + $this->assertFalse($i); $this->travelTo($timezone_now->copy()->startOfDay()); @@ -213,9 +215,9 @@ class SubscriptionApiTest extends TestCase ->whereDate('due_date', '<=', now()->setTimezone($company->timezone()->name)->addDay()->startOfDay()) ->get(); - } + $this->assertCount(0, $i); - $this->assertFalse($i); + } $count = Invoice::whereNotNull('subscription_id')->whereIn('company_id', [$c2->id, $c->id])->count();