You are here

public function ConstraintsTest::geoProvider in Geofield 8

Provides test data for testGeoConstraint().

File

tests/src/Kernel/ConstraintsTest.php, line 61

Class

ConstraintsTest
Tests geofield constraints.

Namespace

Drupal\Tests\geofield\Kernel

Code

public function geoProvider() {
  return [
    'valid POINT' => [
      'POINT (40 -3)',
      0,
    ],
    'invalid POAINT' => [
      'POAINT (40 -3)',
      1,
    ],
    'invalid POINT' => [
      'POINT (40 -A)',
      1,
    ],
  ];
}