Files
snipe-it/tests/Feature/Depreciations/Api/DepreciationsIndexTest.php
2026-03-16 17:40:57 -07:00

17 lines
375 B
PHP

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