write test for another items and change some part of the code
This commit is contained in:
@@ -12,7 +12,7 @@ use Tests\TestCase;
|
||||
class ShowTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase, WithFaker;
|
||||
public function test_guest_cannot_view_role(): void
|
||||
public function test_unauthenticated_user_cannot_access(): void
|
||||
{
|
||||
$role = Role::factory()->create();
|
||||
$response = $this->postJson(route('roles.show',[$role->id]));
|
||||
|
||||
Reference in New Issue
Block a user