From 89e50b94d34aff282509a85d96d7bc64370e1fd4 Mon Sep 17 00:00:00 2001 From: bryanlopezinc Date: Mon, 3 Jun 2024 08:09:05 +0100 Subject: [PATCH] Fix Failing sqlite test --- tests/Feature/Settings/ShowSetUpPageTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Settings/ShowSetUpPageTest.php b/tests/Feature/Settings/ShowSetUpPageTest.php index 84b6c170e0..95638be0d6 100644 --- a/tests/Feature/Settings/ShowSetUpPageTest.php +++ b/tests/Feature/Settings/ShowSetUpPageTest.php @@ -10,6 +10,7 @@ use Illuminate\Log\Events\MessageLogged; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Http; +use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; use Illuminate\Testing\TestResponse; use PDOException; @@ -220,7 +221,7 @@ class ShowSetUpPageTest extends TestCase Http::fake([URL::to('.env') => fn () => throw new ConnectionException('Some curl error message.')]); - Event::fake(); + Log::setEventDispatcher(Event::fake()); $this->getSetUpPageResponse()->assertOk();