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);