create(); $this->getJson(route('api.outlets.index')); $this->seeJsonSubset([ 'type' => 'FeatureCollection', 'features' => [ [ 'type' => 'Feature', 'properties' => [ 'name' => $outlet->name, 'address' => $outlet->address, 'coordinate' => $outlet->coordinate, ], 'geometry' => [ 'type' => 'Point', 'coordinates' => [ $outlet->longitude, $outlet->latitude, ], ], ], ], ]); } }