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();