write test for another items and change some part of the code
This commit is contained in:
@@ -12,11 +12,11 @@ class IndexTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase, WithFaker;
|
||||
|
||||
public function test_the_user_is_not_authenticated(): void
|
||||
public function test_unauthenticated_user_cannot_access(): void
|
||||
{
|
||||
$response = $this->getJson(route('roles.index'));
|
||||
|
||||
$response->assertStatus(401);
|
||||
$response->assertUnauthorized();
|
||||
}
|
||||
|
||||
public function test_authenticated_user_can_see_roles_index(): void
|
||||
|
||||
Reference in New Issue
Block a user