Skip to content

A free open source IT asset/license management system

Added back in commented out test

snipe74c78d757793
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()
{