mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 14:09:43 -08:00
d635c86e00
Signed-off-by: snipe <snipe@snipe.net>
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();
|
|
}
|
|
}
|