Files
wordpress-theme-aksrt/tests/asset-ledger/CommissionLedgerTest.php
T
2026-09-04 23:35:19 +08:00

16 lines
362 B
PHP

<?php
use AKSRT\Payment\CommissionLedger;
use PHPUnit\Framework\TestCase;
final class CommissionLedgerTest extends TestCase {
public function test_points_orders_do_not_create_cash_commissions(): void {
$result = CommissionLedger::get_instance()->record_paid_order([
'currency' => 'points',
'amount' => 500,
]);
self::assertSame(0, $result);
}
}