Files
portal/app/tests/Feature/Advertising/AdWalletModelTest.php
T

17 lines
397 B
PHP

<?php
declare(strict_types=1);
use App\Models\AdWallet;
use App\Models\Tenant;
it('creates ad wallet via model with string money casts', function () {
$tenant = Tenant::factory()->create();
$wallet = AdWallet::create([
'tenant_id' => $tenant->id,
'balance_rub' => '1000.00',
'frozen_rub' => '0.00',
]);
expect($wallet->balance_rub)->toBe('1000.00');
});