Commit ff673f47 authored by Viral Solani's avatar Viral Solani

resolve error on a_user_can_not_delete_himself test case

parent 4b0a96a4
......@@ -298,7 +298,7 @@ class ManageUsersTest extends TestCase
$this->withExceptionHandling()
->actingAs($this->admin)
->delete(route('admin.access.user.destroy', $this->admin))
->expectException('Exception');
->assertSessionHas(['flash_danger' => trans('exceptions.backend.access.users.cant_delete_self')]);
$this->assertDatabaseHas(config('access.users_table'), ['id' => $this->admin->id, 'deleted_at' => null]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment