Skip to content

Commit

Permalink
change test
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 31, 2016
1 parent 9e75029 commit af2661a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Database/DatabaseEloquentIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit af2661a

Please sign in to comment.