Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Apr 4, 2024
1 parent b867786 commit 460f8a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CreationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 460f8a0

Please sign in to comment.