File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Support \Facades \DB ;
77use InvalidArgumentException ;
88use MatanYadaev \EloquentSpatial \Objects \Point ;
9+ use MatanYadaev \EloquentSpatial \Tests \TestFactories \TestPlaceFactory ;
910use MatanYadaev \EloquentSpatial \Tests \TestModels \TestPlace ;
1011
1112class 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 */
You can’t perform that action at this time.
0 commit comments