From d3e8543273b21b5a9f6e1e20e007e2aab4b9382d Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 8 Nov 2016 22:27:40 +0200 Subject: [PATCH] fix test --- tests/Database/DatabaseEloquentModelTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Database/DatabaseEloquentModelTest.php b/tests/Database/DatabaseEloquentModelTest.php index a7412f74812a..8232aff27af6 100755 --- a/tests/Database/DatabaseEloquentModelTest.php +++ b/tests/Database/DatabaseEloquentModelTest.php @@ -155,7 +155,8 @@ public function testEagerLoadingWithColumns() $builder->shouldReceive('select')->once()->with(['bar', 'baz']); $this->assertNotNull($instance->getEagerLoads()['hadi']); $this->assertNotNull($instance->getEagerLoads()['foo']); - $instance->getEagerLoads()['foo']($builder); + $closure = $instance->getEagerLoads()['foo']; + $closure($builder); } public function testWithMethodCallsQueryBuilderCorrectlyWithArray()