Commit 0aff70ad authored by fso's avatar fso

Add cursor support (tests)

parent 310f0a30
......@@ -773,10 +773,8 @@ class QueryBuilderTest extends TestCase
$results = DB::collection('items')->orderBy('_id', 'asc')->cursor();
$this->assertInstanceOf(LazyCollection::class, $results);
$i = 0;
foreach ($results as $result) {
foreach ($results as $i => $result) {
$this->assertEquals($data[$i]['name'], $result['name']);
$i++;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment