fix payment points

This commit is contained in:
2026-09-04 23:35:19 +08:00
parent f3fcfe45da
commit 9dc278bd83
6 changed files with 44 additions and 19 deletions
@@ -0,0 +1,15 @@
<?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);
}
}