Files
snipe-it/tests/Feature/Consumables/Ui/ConsumableIndexTest.php
T
Marcus Moore 3e832e5e94 Revert "Define test classes as final"
This reverts commit 95516b0343.
2024-08-06 13:31:17 -07:00

24 lines
543 B
PHP

<?php
namespace Tests\Feature\Consumables\Ui;
use App\Models\User;
use Tests\TestCase;
class ConsumableIndexTest extends TestCase
{
public function testPermissionRequiredToViewConsumablesList()
{
$this->actingAs(User::factory()->create())
->get(route('consumables.index'))
->assertForbidden();
}
public function testUserCanListConsumables()
{
$this->actingAs(User::factory()->superuser()->create())
->get(route('consumables.index'))
->assertOk();
}
}