fix payment points

This commit is contained in:
kate522 committed 2026-09-04 23:35:19 +08:00
1 parent f3fcfe45da
commit 9dc278bd83
6 files changed
+44 -19

No files matched your search

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