Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Update ModelAssertions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eisfeuer authored Aug 4, 2020
1 parent e653387 commit 4dc471d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPUnit/Assertions/ModelAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function assertEqualsModel(Model $expected, $actual, ?string $mess
PHPUnit::assertTrue($expected->is($actual));
}

foreach (arr_diff($expected->getFillable(), $expected->getHidden()) as $attribute) {
foreach (array_diff($expected->getFillable(), $expected->getHidden()) as $attribute) {
PHPUnit::assertEquals(
$expected->getAttribute($attribute),
data_get($actual, $attribute),
Expand Down

0 comments on commit 4dc471d

Please sign in to comment.