public function DateDataTypeTest::testGetValue in Search API 8
Tests value conversion.
@dataProvider getValueTestDataProvider
Parameters
mixed $value: The incoming value.
int $expected: The expected converted value.
File
- tests/
src/ Unit/ DateDataTypeTest.php, line 46
Class
- DateDataTypeTest
- Tests functionality of the "Date" data type plugin.
Namespace
Drupal\Tests\search_api\UnitCode
public function testGetValue($value, $expected) {
$value = $this->plugin
->getValue($value);
$this
->assertSame($expected, $value);
}