Skip to content

Commit 968d564

Browse files
Update tests/Database/Base.php
1 parent f756205 commit 968d564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Database/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ public function testFind(Document $document)
894894
/**
895895
* ORDER BY - Before by natural order
896896
*/
897-
$movies = array_reverse(static::getDatabase()->find('movies', [], 25, 0, [], []));
897+
$movies = static::getDatabase()->find('movies', [], 25, 0, [], [Database::ORDER_DESC]);
898898

899899
$documents = static::getDatabase()->find('movies', [], 2, 0, [], [Database::ORDER_DESC], $movies[5], Database::CURSOR_BEFORE);
900900
$this->assertEquals(2, count($documents));

0 commit comments

Comments
 (0)