From af2661a815189a088e21acc71d1bc7b441cb0d13 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 31 May 2016 11:39:23 -0500 Subject: [PATCH] change test --- tests/Database/DatabaseEloquentIntegrationTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Database/DatabaseEloquentIntegrationTest.php b/tests/Database/DatabaseEloquentIntegrationTest.php index 30231eb50ae6..83d48166ce25 100644 --- a/tests/Database/DatabaseEloquentIntegrationTest.php +++ b/tests/Database/DatabaseEloquentIntegrationTest.php @@ -321,7 +321,8 @@ public function testHasOnSelfReferencingBelongsToManyRelationship() { $user = EloquentTestUser::create(['email' => 'taylorotwell@gmail.com']); $friend = $user->friends()->create(['email' => 'abigailotwell@gmail.com']); - $this->assertTrue(isset($user->friends)); + + $this->assertTrue(isset($user->friends[0]->id)); $results = EloquentTestUser::has('friends')->get();