From 1f96acfbdceecffbf9f8e6deaf7aad5e11eb0df0 Mon Sep 17 00:00:00 2001 From: Ricardo Gobbo de Souza Date: Fri, 13 Dec 2024 10:35:04 -0300 Subject: [PATCH] Ensure that the method exists --- tests/DefaultValuesTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/DefaultValuesTest.php b/tests/DefaultValuesTest.php index 98cfccb..5e483f9 100644 --- a/tests/DefaultValuesTest.php +++ b/tests/DefaultValuesTest.php @@ -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()); } }