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

17 lines
360 B
PHP
Raw Normal View History

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