From 2bf0c0ecc6d217ba802cdc960933a46d554f99de Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 15 Feb 2023 17:16:04 +0100 Subject: [PATCH] Delete immutability tests --- tests/Pest/MoneyTest.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/Pest/MoneyTest.php b/tests/Pest/MoneyTest.php index b8055f1..7d6bf41 100644 --- a/tests/Pest/MoneyTest.php +++ b/tests/Pest/MoneyTest.php @@ -6,22 +6,6 @@ use ArchTech\Money\Money; use ArchTech\Money\Tests\Currencies\CZK; use ArchTech\Money\Tests\Currencies\EUR; -test('Money value is immutable', function () { - pest()->expectError(); - - $money = money(100); - - $money->value = 200; -}); - -test('Money currency is immutable', function () { - pest()->expectError(); - - $money = money(100); - - $money->currency = 'EUR'; -}); - test('money can be created from a decimal value', function () { $money = Money::fromDecimal(10.0, 'USD');