From 0902aebaec947ae0bd4b3949e643b59ffdc25259 Mon Sep 17 00:00:00 2001 From: Phil Young Date: Thu, 8 Aug 2024 14:22:14 +0100 Subject: [PATCH] Fix an error from an automated refactor It will always be 1 as it is 1 object, we neede the array from this --- tests/Facades/HealthCheckTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Facades/HealthCheckTest.php b/tests/Facades/HealthCheckTest.php index 46eb7c7..b078d38 100644 --- a/tests/Facades/HealthCheckTest.php +++ b/tests/Facades/HealthCheckTest.php @@ -13,6 +13,6 @@ public function testCanUseAppHealthFromFacade(): void $this->app->register(HealthCheckServiceProvider::class); config(['healthcheck.checks' => [\UKFast\HealthCheck\Checks\EnvHealthCheck::class]]); - $this->assertCount(1, HealthCheck::all()); + $this->assertCount(1, HealthCheck::all()->toArray()); } }