2025-08-27 11:30:48 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2025-09-04 17:25:57 +08:00
|
|
|
* QueryPointLogTest.php@Pay
|
2025-08-27 11:30:48 +08:00
|
|
|
*
|
|
|
|
|
* @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);
|
|
|
|
|
});
|
2025-09-04 17:25:57 +08:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
});
|