Skip to content

Commit 77d0326

Browse files
committed
Merge pull request #747
* phplib-552: PHPLIB-522: sort outcome collection by ID
2 parents 0d4b89c + dd6d661 commit 77d0326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/SpecTests/FunctionalTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected function assertOutcomeCollectionData(array $expectedDocuments, $result
106106

107107
$mi = new MultipleIterator(MultipleIterator::MIT_NEED_ANY);
108108
$mi->attachIterator(new ArrayIterator($expectedDocuments));
109-
$mi->attachIterator(new IteratorIterator($outcomeCollection->find()));
109+
$mi->attachIterator(new IteratorIterator($outcomeCollection->find([], ['sort' => ['_id' => 1]])));
110110

111111
foreach ($mi as $documents) {
112112
list($expectedDocument, $actualDocument) = $documents;

0 commit comments

Comments
 (0)