From 460f8a015eeb682330f72f6b024f2dbe9f3752a5 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Thu, 4 Apr 2024 15:58:57 +0200 Subject: [PATCH] Fix test --- tests/CreationTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/CreationTest.php b/tests/CreationTest.php index 1f8feaa5..59c9ac37 100644 --- a/tests/CreationTest.php +++ b/tests/CreationTest.php @@ -711,6 +711,8 @@ public function __construct( ->name->toBeNull() ->upper_name->toBeNull(); + config()->set('data.features.ignore_exception_when_trying_to_set_computed_property_value', false); + expect(fn () => $dataObject::from(['name' => 'Ruben', 'upper_name' => 'RUBEN'])) ->toThrow(CannotSetComputedValue::class);