Commit 87dfecf8 authored by Ditty's avatar Ditty

Fix incorrect collection

parent 52c9faeb
......@@ -492,7 +492,7 @@ class ModelTest extends TestCase
$users = User::raw(function (Collection $collection) {
return $collection->find(['age' => 35]);
});
$this->assertInstanceOf(Collection::class, $users);
$this->assertInstanceOf(EloquentCollection::class, $users);
$this->assertInstanceOf(Model::class, $users[0]);
$user = User::raw(function (Collection $collection) {
......
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