mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -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();
|
||
|
}
|
||
|
}
|