@@ -194,7 +194,7 @@ public function testInsertUpdateGeometryCollectionHasCorrectSql()
194
194
public function testScopeDistance ()
195
195
{
196
196
$ point = new Point (1 , 2 );
197
- $ query = TestModel::Distance ('point ' , $ point , 10 );
197
+ $ query = TestModel::distance ('point ' , $ point , 10 );
198
198
199
199
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
200
200
$ q = $ query ->getQuery ();
@@ -205,7 +205,7 @@ public function testScopeDistance()
205
205
public function testScopeDistanceExcludingSelf ()
206
206
{
207
207
$ point = new Point (1 , 2 );
208
- $ query = TestModel::Distance ('point ' , $ point , 10 , true );
208
+ $ query = TestModel::distance ('point ' , $ point , 10 , true );
209
209
210
210
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
211
211
$ q = $ query ->getQuery ();
@@ -217,7 +217,7 @@ public function testScopeDistanceExcludingSelf()
217
217
public function testScopeDistanceValue ()
218
218
{
219
219
$ point = new Point (1 , 2 );
220
- $ query = TestModel::DistanceValue ('point ' , $ point );
220
+ $ query = TestModel::distanceValue ('point ' , $ point );
221
221
222
222
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
223
223
$ q = $ query ->getQuery ();
@@ -257,7 +257,7 @@ private function buildTestPolygon()
257
257
258
258
public function testScopeComparison ()
259
259
{
260
- $ query = TestModel::Comparison ('point ' , $ this ->buildTestPolygon (), 'within ' );
260
+ $ query = TestModel::comparison ('point ' , $ this ->buildTestPolygon (), 'within ' );
261
261
262
262
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
263
263
$ q = $ query ->getQuery ();
@@ -267,7 +267,7 @@ public function testScopeComparison()
267
267
268
268
public function testScopeWithin ()
269
269
{
270
- $ query = TestModel::Within ('point ' , $ this ->buildTestPolygon ());
270
+ $ query = TestModel::within ('point ' , $ this ->buildTestPolygon ());
271
271
272
272
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
273
273
$ q = $ query ->getQuery ();
@@ -277,7 +277,7 @@ public function testScopeWithin()
277
277
278
278
public function testScopeCrosses ()
279
279
{
280
- $ query = TestModel::Crosses ('point ' , $ this ->buildTestPolygon ());
280
+ $ query = TestModel::crosses ('point ' , $ this ->buildTestPolygon ());
281
281
282
282
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
283
283
$ q = $ query ->getQuery ();
@@ -287,7 +287,7 @@ public function testScopeCrosses()
287
287
288
288
public function testScopeContains ()
289
289
{
290
- $ query = TestModel::Contains ('point ' , $ this ->buildTestPolygon ());
290
+ $ query = TestModel::contains ('point ' , $ this ->buildTestPolygon ());
291
291
292
292
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
293
293
$ q = $ query ->getQuery ();
@@ -297,7 +297,7 @@ public function testScopeContains()
297
297
298
298
public function testScopeDisjoint ()
299
299
{
300
- $ query = TestModel::Disjoint ('point ' , $ this ->buildTestPolygon ());
300
+ $ query = TestModel::disjoint ('point ' , $ this ->buildTestPolygon ());
301
301
302
302
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
303
303
$ q = $ query ->getQuery ();
@@ -307,7 +307,7 @@ public function testScopeDisjoint()
307
307
308
308
public function testScopeEquals ()
309
309
{
310
- $ query = TestModel::Equals ('point ' , $ this ->buildTestPolygon ());
310
+ $ query = TestModel::equals ('point ' , $ this ->buildTestPolygon ());
311
311
312
312
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
313
313
$ q = $ query ->getQuery ();
@@ -317,7 +317,7 @@ public function testScopeEquals()
317
317
318
318
public function testScopeIntersects ()
319
319
{
320
- $ query = TestModel::Intersects ('point ' , $ this ->buildTestPolygon ());
320
+ $ query = TestModel::intersects ('point ' , $ this ->buildTestPolygon ());
321
321
322
322
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
323
323
$ q = $ query ->getQuery ();
@@ -327,7 +327,7 @@ public function testScopeIntersects()
327
327
328
328
public function testScopeOverlaps ()
329
329
{
330
- $ query = TestModel::Overlaps ('point ' , $ this ->buildTestPolygon ());
330
+ $ query = TestModel::overlaps ('point ' , $ this ->buildTestPolygon ());
331
331
332
332
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
333
333
$ q = $ query ->getQuery ();
@@ -337,7 +337,7 @@ public function testScopeOverlaps()
337
337
338
338
public function testScopeDoesTouch ()
339
339
{
340
- $ query = TestModel::DoesTouch ('point ' , $ this ->buildTestPolygon ());
340
+ $ query = TestModel::doesTouch ('point ' , $ this ->buildTestPolygon ());
341
341
342
342
$ this ->assertInstanceOf (\Grimzy \LaravelMysqlSpatial \Eloquent \Builder::class, $ query );
343
343
$ q = $ query ->getQuery ();
0 commit comments