snipe-it/tests/Feature/Depreciations/Api/DepreciationsIndexTest.php

18 lines
369 B
PHP
Raw Normal View History

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