mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 02:15:07 +08:00
- 创建 Email 值对象用于封装邮箱信息 - 扩展 AccountRepoInterface 添加邮箱管理方法 - 重命名 AccountBalanceRepo 为 AccountRepo 并实现邮箱功能 - 更新相关测试用例和配置以适配新功能
25 lines
685 B
PHP
25 lines
685 B
PHP
<?php
|
|
|
|
/**
|
|
* QueryPointBalanceTest.php@Pay
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2025/8/18
|
|
*/
|
|
|
|
use Singularity\HDK\Pay\Domain\Account\Aggregate\Account\PointsBalance;
|
|
use Singularity\HDK\Pay\Domain\Account\Enum\PointType;
|
|
use Singularity\HDK\Pay\Infrastructure\Repository\AccountRepo;
|
|
|
|
use function Hyperf\Support\make;
|
|
|
|
it('should query point balance', function () {
|
|
$uid = 'cn3221';
|
|
$repo = make(AccountRepo::class);
|
|
$point_balance = $repo->getPointBalance($uid, PointType::EMA);
|
|
expect($point_balance)
|
|
->toBeInstanceOf(PointsBalance::class)
|
|
->and($point_balance->getType())->toBe(PointType::EMA);
|
|
});
|