snipe-it/tests/Feature/Accessories/Ui/AccessoriesIndexTest.php
2024-09-04 15:43:01 -07:00

17 lines
344 B
PHP

<?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();
}
}