mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 05:15:06 +08:00
- 新增 InvoiceRecord 类用于存储发票信息 - 在 PointLog 类中添加发票相关字段和方法 - 在 PointLogRepo 中实现积分日志详情查询接口 - 更新单元测试以覆盖新功能
35 lines
789 B
PHP
35 lines
789 B
PHP
<?php
|
|
|
|
/**
|
|
* QueryPointLogTest.php@Pay
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2025/8/27
|
|
*/
|
|
|
|
use Singularity\HDK\Pay\Domain\Account\Aggregate\PointLog\PointLog;
|
|
use Singularity\HDK\Pay\Infrastructure\Repository\PointLogRepo;
|
|
|
|
use function Hyperf\Support\make;
|
|
|
|
it('should can query point log list', function () {
|
|
$uid = '61a74db54f387';
|
|
|
|
$repo = make(PointLogRepo::class);
|
|
$list = $repo->getList($uid);
|
|
expect($list)
|
|
->not->toBeEmpty()
|
|
->each
|
|
->toBeInstanceOf(PointLog::class);
|
|
});
|
|
|
|
it('should can query a point log', function () {
|
|
$case_id = '68b6ac37a6440';
|
|
|
|
$repo = make(PointLogRepo::class);
|
|
$log = $repo->getDetail($case_id);
|
|
expect($log)
|
|
->toBeInstanceOf(PointLog::class);
|
|
});
|