From 49e4e3976deed96689f2eaad690aa34351f09cc5 Mon Sep 17 00:00:00 2001 From: NoAvatar Date: Thu, 17 Oct 2024 06:17:37 +1000 Subject: [PATCH] Update Test: user definitely exists --- tests/Feature/UserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/UserTest.php b/tests/Feature/UserTest.php index e876718..ba49a01 100644 --- a/tests/Feature/UserTest.php +++ b/tests/Feature/UserTest.php @@ -18,7 +18,7 @@ public function test_success_get_users(): void public function test_success_get_one_user(): void { - $user = User::query()->first(); + $user = User::factory()->create(); $this->get('/user/' . $user->id) ->assertStatus(200);