mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 20:26:51 -08:00
24 lines
549 B
PHP
24 lines
549 B
PHP
<?php
|
|||
|
|||
namespace Tests\Feature\Categories\Ui;
|
|||
|
|||
use App\Models\User;
|
|||
use Tests\TestCase;
|
|||
|
|||
class DepreciationsIndexTest extends TestCase
|
|||
{
|
|||
public function testPermissionRequiredToViewDepreciationsList()
|
|||
{
|
|||
$this->actingAs(User::factory()->create())
|
|||
->get(route('depreciations.index'))
|
|||
->assertForbidden();
|
|||
}
|
|||
|
|||
public function testUserCanListDepreciations()
|
|||
{
|
|||
$this->actingAs(User::factory()->admin()->create())
|
|||
->get(route('depreciations.index'))
|
|||
->assertOk();
|
|||
}
|
|||
}
|