public function RawTest::testValidParsedInput in Search API Location 8
Test the parsed input entered by user in raw format.
@covers ::getParsedInput @dataProvider provideValidInput
File
- tests/
src/ Kernel/ RawTest.php, line 48
Class
- RawTest
- Tests RawTest plugin parsing.
Namespace
Drupal\Tests\search_api_location\KernelCode
public function testValidParsedInput($valid, $expected) {
$input = [
'value' => $valid,
];
$parsedInput = $this->sut
->getParsedInput($input);
$this
->assertEquals($parsedInput, $expected);
}