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:
parent
ffa31f164e
commit
2bf0c0ecc6
1 changed files with 0 additions and 16 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue