add permission to the db
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user