Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfsblu committed Jul 15, 2024
1 parent 1bdcbdd commit 2acc0f3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/Query/MultiMatchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testAndOperator(): void
/**
* @group functional
*/
public function testType(): void
public function testTypePhrasePrefix(): void
{
$multiMatch = new MultiMatch();
$multiMatch->setQuery('Trist');
Expand All @@ -66,6 +66,20 @@ public function testType(): void
$this->assertEquals(1, $resultSet->count());
}

/**
* @group functional
*/
public function testTypeBoolPrefix(): void
{
$multiMatch = new MultiMatch();
$multiMatch->setQuery('Main');
$multiMatch->setFields(['full_name', 'name']);
$multiMatch->setType(MultiMatch::TYPE_BOOL_PREFIX);
$resultSet = $this->_getResults($multiMatch);

$this->assertEquals(2, $resultSet->count());
}

/**
* @group functional
*/
Expand Down

0 comments on commit 2acc0f3

Please sign in to comment.