Skip to content

Commit e343201

Browse files
committed
TASK: Test return 1 more result, because the current document is included now
1 parent 9628295 commit e343201

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Tests/Functional/Eel/ElasticSearchQueryTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function filterByNodeType()
125125
->log($this->getLogMessagePrefix(__METHOD__))
126126
->nodeType('TYPO3.Neos.NodeTypes:Page')
127127
->count();
128-
$this->assertEquals(3, $resultCount);
128+
$this->assertEquals(4, $resultCount);
129129
}
130130

131131
/**
@@ -151,7 +151,7 @@ public function limitDoesNotImpactCount()
151151
->limit(1);
152152

153153
$resultCount = $query->count();
154-
$this->assertEquals(3, $resultCount, 'Asserting the count query returns the total count.');
154+
$this->assertEquals(4, $resultCount, 'Asserting the count query returns the total count.');
155155
}
156156

157157
/**
@@ -183,7 +183,7 @@ public function fieldBasedAggregations()
183183

184184
$this->assertArrayHasKey($aggregationTitle, $result);
185185

186-
$this->assertCount(2, $result[$aggregationTitle]['buckets']);
186+
$this->assertCount(3, $result[$aggregationTitle]['buckets']);
187187

188188
$expectedChickenBucket = [
189189
'key' => 'chicken',
@@ -227,13 +227,13 @@ public function nodesWillBeSortedDesc()
227227
/** @var QueryResultInterface $result $node */
228228

229229
$this->assertInstanceOf(QueryResultInterface::class, $result);
230-
$this->assertCount(3, $result, 'The result should have 3 items');
231-
$this->assertEquals(3, $result->count(), 'Count should be 3');
230+
$this->assertCount(4, $result, 'The result should have 4 items');
231+
$this->assertEquals(4, $result->count(), 'Count should be 4');
232232

233233
$node = $result->getFirst();
234234

235235
$this->assertInstanceOf(NodeInterface::class, $node);
236-
$this->assertEquals('egg', $node->getProperty('title'), 'Asserting a desc sort order by property title');
236+
$this->assertEquals('welcome', $node->getProperty('title'), 'Asserting a desc sort order by property title');
237237
}
238238

239239
/**

0 commit comments

Comments
 (0)