Files
snipe-it/tests/Feature/Groups/Ui/IndexGroupTest.php
T
Marcus Moore 82e795b642 Revert "Add return types to test methods"
This reverts commit 83fb6826ee.
2024-08-06 13:30:34 -07:00

26 lines
592 B
PHP

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