mirror of
https://github.com/jbcr/core.git
synced 2026-04-29 19:53:08 +02:00
Merge pull request #2991 from bolt/bugfix/geolocation-fixtures
Create meaningful fixtures for geolocation fields
This commit is contained in:
@@ -366,6 +366,14 @@ class ContentFixtures extends BaseFixture implements DependentFixtureInterface,
|
||||
];
|
||||
}
|
||||
|
||||
break;
|
||||
case 'geolocation':
|
||||
$data = ['selected' => 'latlong', 'zoom' => '7', 'search' => ''];
|
||||
$coordinates = $this->faker->localCoordinates();
|
||||
$data['lat'] = $coordinates['latitude'];
|
||||
$data['long'] =$coordinates['longitude'];
|
||||
$data = [json_encode($data)];
|
||||
|
||||
break;
|
||||
default:
|
||||
$data = [$this->faker->sentence(6, true)];
|
||||
|
||||
Reference in New Issue
Block a user