You are here

public function TermsParseModeTest::testParseInput in Search API 8

Tests parsing the keys.

@dataProvider parseInputTestDataProvider

Parameters

mixed $keys: The keywords to parse.

array $expected: The expected parsed keys array.

File

tests/src/Unit/TermsParseModeTest.php, line 43

Class

TermsParseModeTest
Tests functionality of the "Multiple words" parse mode.

Namespace

Drupal\Tests\search_api\Unit

Code

public function testParseInput($keys, array $expected) {
  $parsed = $this->plugin
    ->parseInput($keys);
  $this
    ->assertEquals($expected, $parsed);
}