Skip to content

Commit

Permalink
ITT: assertEloquentBelongsTo minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Mar 16, 2017
1 parent a311e25 commit 0763bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Asserts/EloquentAsserts.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ protected function assertEloquentBelongsTo($class, $relation)
$parent = factory(get_class($parentModel))->create();
$child = factory($class)->create([$childForeignKey => $parent->{$parentKey}]);

$this->assertEquals($parent->toArray(), $child->{$relation}->toArray());
$this->assertEquals($parent->fresh()->toArray(), $child->{$relation}->toArray());
}
}

0 comments on commit 0763bfa

Please sign in to comment.