write test for another items and change some part of the code

This commit is contained in:
2025-05-14 15:38:33 +03:30
parent db8cda55df
commit 16fe0be555
20 changed files with 1258 additions and 45 deletions

View File

@@ -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]));