新增全局流水号
This commit is contained in:
1 parent
90fd59b647
commit
07c4e969c3
33 files changed
+1176
-73
No files matched your search
@@ -8,11 +8,13 @@ final class LedgerResultTest extends TestCase {
|
||||
public function test_balance_reads_integer_minor_units(): void {
|
||||
$result = new LedgerResult(17, true, [], [
|
||||
4 => ['points' => 25, 'balance' => 1234],
|
||||
]);
|
||||
], 'AK20260825123456000001');
|
||||
self::assertSame(25, $result->balance(4, AssetType::POINTS));
|
||||
self::assertSame(1234, $result->balance(4, AssetType::BALANCE));
|
||||
self::assertSame(0, $result->balance(99, AssetType::BALANCE));
|
||||
self::assertSame(17, $result->to_array()['transaction_id']);
|
||||
self::assertTrue($result->to_array()['replayed']);
|
||||
self::assertSame('AK20260825123456000001', $result->flow_number);
|
||||
self::assertSame('AK20260825123456000001', $result->to_array()['flow_number']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user