create test for three item in roaditem project

This commit is contained in:
2025-03-30 13:47:39 +03:30
parent 1c0ebdb9ab
commit f295034f4f
3 changed files with 401 additions and 542 deletions

View File

@@ -24,6 +24,14 @@ class OperatorIndexTest extends TestCase
$response->assertForbidden();
}
public function test_user_cannot_access_authentication_to_operator_index(): void
{
$response = $this->getJson(route('v3.road_items.operatorIndex'));
$response->assertStatus(401);
}
public function test_operator_can_see_the_data_table(): void
{
$user = User::factory()