Added back in commented out test

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-06-22 20:09:04 +01:00
parent 1ef0c1adac
commit 74c78d7577

View file

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