Skip to content

Commit

Permalink
Update HasSpatialMySqlTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x authored May 29, 2024
1 parent 517f39e commit c243bcc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/HasSpatialMySqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Javaabu\Geospatial\Objects\Polygon;
use Javaabu\Geospatial\Tests\TestCase;
use Javaabu\Geospatial\Tests\TestSupport\Models\City;
use MatanYadaev\EloquentSpatial\Enums\Srid;

class HasSpatialMySqlTest extends TestCase
{
Expand Down Expand Up @@ -52,7 +51,7 @@ public function it_can_set_polygon_for_mysql(): void

$this->assertDatabaseHas('cities', [
'name' => 'Male City',
'boundary' => $city->toTestDbString(Polygon::fromWkt($wkt, Srid::WGS84)),
'boundary' => $city->toTestDbString(Polygon::fromWkt($wkt, 4326)),
]);
}

Expand Down Expand Up @@ -83,7 +82,7 @@ public function it_can_set_coordinates_for_mysql(): void

$this->assertDatabaseHas('cities', [
'name' => 'Male City',
'coordinates' => $city->toTestDbString(new Point($latitude, $longitude, Srid::WGS84)),
'coordinates' => $city->toTestDbString(new Point($latitude, $longitude, 4326)),
]);
}

Expand Down

0 comments on commit c243bcc

Please sign in to comment.