public function LocationDataTypeTest::testGetValue in Search API Location 8
Test the GetValue method.
File
- tests/
src/ Kernel/ LocationDataTypeTest.php, line 26
Class
- LocationDataTypeTest
- Tests generation of LocationDataType plugin.
Namespace
Drupal\Tests\search_api_location\KernelCode
public function testGetValue() {
$sut = $this->container
->get('plugin.manager.search_api.data_type')
->createInstance('location');
$this
->assertEquals($sut
->getValue('POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2,2 3,3 3,3 2,2 2))'), "3,3");
}