add permission to the db

This commit is contained in:
2024-04-07 14:09:36 +03:30
parent 99b21c16f4
commit 08445ae219
2 changed files with 23 additions and 9 deletions

View File

@@ -19,7 +19,17 @@ class GetAllDataToMapTest extends TestCase
{
$user = User::factory()->create();
RoadPatrol::factory(7)
RoadPatrol::factory()
->sequence(
['id' => 1],
['id' => 2],
['id' => 3],
['id' => 4],
['id' => 5],
['id' => 6],
['id' => 7],
)
->count(7)
->create();
$response = $this->actingAs($user)->getJson('/v2/road_patrols/report/map');