16 lines
362 B
PHP
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);
|
|
}
|
|
}
|