snipe-it/tests/Feature/Accessories/Api/IndexAccessoryTest.php

17 lines
360 B
PHP
Raw Normal View History

<?php
namespace Tests\Feature\Accessories\Api;
use App\Models\User;
use Tests\TestCase;
2024-09-09 14:36:32 -07:00
class IndexAccessoryTest extends TestCase
{
public function testPermissionRequiredToViewAccessoriesIndex()
{
$this->actingAsForApi(User::factory()->create())
->getJson(route('api.accessories.index'))
->assertForbidden();
}
}