3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-04-05 23:38:39 +00:00
Files
snipe-it/tests/Feature/Groups/Ui/IndexGroupTest.php
2026-03-16 17:40:57 -07:00

26 lines
597 B
PHP

<?php
namespace Tests\Feature\Groups\Ui;
use App\Models\User;
use Tests\TestCase;
class IndexGroupTest extends TestCase
{
public function test_permission_required_to_view_group_list()
{
$this->actingAs(User::factory()->create())
->get(route('groups.index'))
->assertForbidden();
// $this->followRedirects($response)->assertSee('sad-panda.png');
}
public function test_user_can_list_groups()
{
$this->actingAs(User::factory()->superuser()->create())
->get(route('groups.index'))
->assertOk();
}
}