Skip to content

Commit

Permalink
Ensure that the method exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Dec 13, 2024
1 parent aa8eb90 commit 1f96acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/DefaultValuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public function test_model_unguarded()
{
$this->assertFalse(Model::isUnguarded());

if (method_exists(Model::class, 'preventsLazyLoading')) {
$this->assertTrue(Model::preventsLazyLoading());
if (method_exists(Model::class, 'shouldBeStrict')) {
$this->assertFalse(Model::preventsLazyLoading());
}
}

Expand Down

0 comments on commit 1f96acf

Please sign in to comment.