mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added back in commented out test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1ef0c1adac
commit
74c78d7577
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue