Add permission check

This commit is contained in:
Marcus Moore 2024-08-05 15:43:38 -07:00
parent 364775dcfe
commit 4ed3347f52
No known key found for this signature in database

View file

@ -11,6 +11,18 @@ use Tests\TestCase;
class BulkDeleteUsersTest extends TestCase
{
public function testRequiresCorrectPermission()
{
$this->actingAs(User::factory()->create())
->post(route('users/bulksave'), [
'ids' => [
User::factory()->create()->id,
],
'status_id' => Statuslabel::factory()->create()->id,
])
->assertForbidden();
}
public function testAccessoryCheckinsAreProperlyLogged()
{
[$accessoryA, $accessoryB] = Accessory::factory()->count(2)->create();