fix payment points
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user