Skip to content

Commit 22d723c

Browse files
committed
TASK: Adjust the tests according to the change
1 parent c0fbdef commit 22d723c

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Tests/Functional/Eel/ElasticSearchQueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public function limitImpactGetAccessibleCount(): void
162162

163163
/**
164164
* @test
165+
* @throws QueryBuildingException
165166
*/
166167
public function fieldBasedAggregations(): void
167168
{
@@ -173,7 +174,6 @@ public function fieldBasedAggregations(): void
173174
->getAggregations();
174175

175176
static::assertArrayHasKey($aggregationTitle, $result);
176-
177177
static::assertCount(3, $result[$aggregationTitle]['buckets']);
178178

179179
$expectedChickenBucket = [

Tests/Unit/Eel/ElasticSearchQueryBuilderTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,30 +331,29 @@ public function anSimpleAggregationCanBeAddedToTheRequest(string $type, string $
331331

332332
/**
333333
* @test
334+
* @throws QueryBuildingException
334335
*/
335336
public function anAggregationCanBeSubbedUnderAPath(): void
336337
{
337338
$this->queryBuilder->fieldBasedAggregation('foo', 'bar');
338-
$this->queryBuilder->fieldBasedAggregation('bar', 'bar', 'terms', 'foo');
339+
$this->queryBuilder->fieldBasedAggregation('bar', 'bar', 'terms', 'foo', 22);
339340
$this->queryBuilder->fieldBasedAggregation('baz', 'bar', 'terms', 'foo.bar');
340341

341342
$expected = [
342343
'foo' => [
343344
'terms' => [
344345
'field' => 'bar',
345-
'size' => 10
346346
],
347347
'aggregations' => [
348348
'bar' => [
349349
'terms' => [
350350
'field' => 'bar',
351-
'size' => 10
351+
'size' => 22
352352
],
353353
'aggregations' => [
354354
'baz' => [
355355
'terms' => [
356356
'field' => 'bar',
357-
'size' => 10
358357
],
359358
]
360359
]

0 commit comments

Comments
 (0)