Skip to content

Commit

Permalink
it makes more sense to check if the result is an instance of model be…
Browse files Browse the repository at this point in the history
…fore comparing their id
  • Loading branch information
sajed-zarrinpour committed Sep 15, 2024
1 parent 4967b53 commit bdf15cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function testFind() : void

$found = User::find($user->id);

$this->assertEquals($user->id, $found->id);
$this->assertInstanceOf(User::class, $found);
$this->assertEquals($user->id, $found->id);
}
}

Expand Down

0 comments on commit bdf15cd

Please sign in to comment.