We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b05310 commit 192ff0dCopy full SHA for 192ff0d
tests/AtlasSearchTest.php
@@ -193,10 +193,11 @@ public function testDatabaseBuilderAutocomplete()
193
194
self::assertInstanceOf(LaravelCollection::class, $results);
195
self::assertCount(3, $results);
196
+ // Sort results, because order is not guaranteed
197
self::assertSame([
- 'Operating System Concepts',
198
- 'Database System Concepts',
199
- 'Modern Operating Systems',
200
- ], $results->all());
+ 1 => 'Database System Concepts',
+ 2 => 'Modern Operating Systems',
+ 0 => 'Operating System Concepts',
201
+ ], $results->sort()->all());
202
}
203
0 commit comments