@@ -102,7 +102,7 @@ public function it_stores_geometry_collection_from_feature_collection_geo_json()
102102 {
103103 /** @var TestPlace $testPlace */
104104 $ testPlace = TestPlace::factory ()->create ([
105- 'geometry_collection ' => GeometryCollection::fromJson ('{"type":"FeatureCollection","features":[{"type":"Polygon","coordinates":[[[0,0],[1,1],[2,2],[3,3],[0,0]]]},{"type":"Point","coordinates":[0,0]}]} ' ),
105+ 'geometry_collection ' => GeometryCollection::fromJson ('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":" Polygon","coordinates":[[[0,0],[1,1],[2,2],[3,3],[0,0]]]}} ,{"type":"Feature","properties":[],"geometry":{"type":" Point","coordinates":[0,0]} }]} ' ),
106106 ])->fresh ();
107107
108108 $ this ->assertTrue ($ testPlace ->geometry_collection instanceof GeometryCollection);
@@ -172,7 +172,7 @@ public function it_generates_geometry_collection_feature_collection_json(): void
172172 ]);
173173
174174 $ this ->assertEquals (
175- '{"type":"FeatureCollection","features":[{"type":"Polygon","coordinates":[[[0,0],[1,1],[2,2],[3,3],[0,0]]]},{"type":"Point","coordinates":[0,0]}]} ' ,
175+ '{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":" Polygon","coordinates":[[[0,0],[1,1],[2,2],[3,3],[0,0]]]}} ,{"type":"Feature","properties":[],"geometry":{"type":" Point","coordinates":[0,0]} }]} ' ,
176176 $ geometryCollection ->toFeatureCollectionJson ()
177177 );
178178 }
0 commit comments