From 3f47199e9290b64bc06468c20024815c286a2ab9 Mon Sep 17 00:00:00 2001 From: Romain Ruaud Date: Fri, 12 Jul 2024 15:56:29 +0200 Subject: [PATCH] [Core] Adjust test for named range. --- .../Request/Query/Builder/RangeTest.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/module-elasticsuite-core/Test/Unit/Search/Adapter/Elasticsuite/Request/Query/Builder/RangeTest.php b/src/module-elasticsuite-core/Test/Unit/Search/Adapter/Elasticsuite/Request/Query/Builder/RangeTest.php index ed18f85d4..1cdce2b2d 100644 --- a/src/module-elasticsuite-core/Test/Unit/Search/Adapter/Elasticsuite/Request/Query/Builder/RangeTest.php +++ b/src/module-elasticsuite-core/Test/Unit/Search/Adapter/Elasticsuite/Request/Query/Builder/RangeTest.php @@ -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} */