1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 03:14:03 +00:00

Delete immutability tests

This commit is contained in:
lukinovec 2023-02-15 17:16:04 +01:00
parent ffa31f164e
commit 2bf0c0ecc6

View file

@ -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');