get('/user') ->assertStatus(200); } public function test_success_get_one_user(): void { $user = User::factory()->create(); $this->get('/user/' . $user->id) ->assertStatus(200); } public function test_fail_get_user_not_exists(): void { $this->get('/user/99999999') ->assertNotFound(); // FIXME: Not Fount or Bad request? or any else error? // Maybe parse exception: id is numeric // but in future updates id // will be uuid, it is safer $this->get('/user/sehtrgher') ->assertBadRequest(); } }