Skip to content

Commit

Permalink
[Core] Adjust test for named range.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainruaud committed Jul 12, 2024
1 parent 49be5e4 commit 3f47199
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,6 @@ public function testAnonymousRangeQueryBuilder()
$this->assertArrayNotHasKey('_name', $query['range']);
}

/**
* Test the builder with mandatory + name params.
*
* @return void
*/
public function testNamedRangeQueryBuilder()
{
$builder = $this->getQueryBuilder();

$rangeQuery = new RangeQuery('field', ['bounds'], 'queryName');
$query = $builder->buildQuery($rangeQuery);

$this->assertArrayHasKey('_name', $query['range']);
$this->assertEquals('queryName', $query['range']['_name']);
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 3f47199

Please sign in to comment.