Skip to content

Commit c7ad1cd

Browse files
committed
ci fix
1 parent f79770c commit c7ad1cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/GeometryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Illuminate\Support\Facades\DB;
77
use InvalidArgumentException;
88
use MatanYadaev\EloquentSpatial\Objects\Point;
9+
use MatanYadaev\EloquentSpatial\Tests\TestFactories\TestPlaceFactory;
910
use MatanYadaev\EloquentSpatial\Tests\TestModels\TestPlace;
1011

1112
class GeometryTest extends TestCase
@@ -25,12 +26,11 @@ public function it_throws_exception_when_generating_geometry_from_other_geometry
2526
{
2627
$this->expectException(InvalidArgumentException::class);
2728

28-
TestPlace::insert([
29+
TestPlace::insert(array_merge(TestPlace::factory()->definition(), [
2930
'point_with_line_string_cast' => DB::raw('POINT(0, 180)'),
30-
]);
31+
]));
3132

3233
TestPlace::firstOrFail()->getAttribute('point_with_line_string_cast');
33-
3434
}
3535

3636
/** @test */

0 commit comments

Comments
 (0)