snipe-it/tests/Feature/Accessories/Ui/AccessoriesIndexTest.php

17 lines
344 B
PHP
Raw Normal View History

2024-09-04 15:43:01 -07:00
<?php
namespace Tests\Feature\Accessories\Ui;
use App\Models\User;
use Tests\TestCase;
class AccessoriesIndexTest extends TestCase
{
public function testPermissionRequiredToViewAccessoryList()
{
$this->actingAs(User::factory()->create())
->get(route('accessories.index'))
->assertForbidden();
}
}