mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-16 02:24:09 -08:00
8c6ecd35ec
Signed-off-by: snipe <snipe@snipe.net>
26 lines
586 B
PHP
26 lines
586 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Groups\Ui;
|
|
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
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();
|
|
}
|
|
}
|