mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
d635c86e00
Signed-off-by: snipe <snipe@snipe.net>
18 lines
369 B
PHP
18 lines
369 B
PHP
<?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();
|
|
}
|
|
|
|
}
|