From 74c78d75779365525f0a74202d3af3720d21819b Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 22 Jun 2024 20:09:04 +0100 Subject: [PATCH] Added back in commented out test Signed-off-by: snipe --- tests/Feature/Users/Api/DeleteUserTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/Feature/Users/Api/DeleteUserTest.php b/tests/Feature/Users/Api/DeleteUserTest.php index 2bd274d771..e8da98fe31 100644 --- a/tests/Feature/Users/Api/DeleteUserTest.php +++ b/tests/Feature/Users/Api/DeleteUserTest.php @@ -12,15 +12,15 @@ class DeleteUserTest extends TestCase { -// public function testErrorReturnedViaApiIfUserDoesNotExist() -// { -// $this->actingAsForApi(User::factory()->deleteUsers()->create()) -// ->deleteJson(route('api.users.destroy', 'invalid-id')) -// ->assertOk() -// ->assertStatus(200) -// ->assertStatusMessageIs('error') -// ->json(); -// } + public function testErrorReturnedViaApiIfUserDoesNotExist() + { + $this->actingAsForApi(User::factory()->deleteUsers()->create()) + ->deleteJson(route('api.users.destroy', 'invalid-id')) + ->assertOk() + ->assertStatus(200) + ->assertStatusMessageIs('error') + ->json(); + } public function testErrorReturnedViaApiIfUserIsAlreadyDeleted() {