mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 03:35:06 +08:00
- 新增 QueryAccountInformationTest 以测试账户信息查询功能 - 实现 getAccount 方法的单元测试 - 添加测试引导文件和 HTTP 测试用例基类 - 更新 composer.json 和 composer.lock 文件
25 lines
608 B
PHP
25 lines
608 B
PHP
<?php
|
|
|
|
/**
|
|
* QueryAccountInformationTest.php@Pay
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2025/8/18
|
|
*/
|
|
|
|
use Singularity\HDK\Pay\Domain\Account\Aggregate\AccountBalance;
|
|
|
|
use Singularity\HDK\Pay\Infratracture\Repository\AccountBalanceRepo;
|
|
|
|
use function Hyperf\Support\make;
|
|
|
|
it('should be able to query account information', function () {
|
|
$uid = '123456';
|
|
$repo = make(AccountBalanceRepo::class);
|
|
$result = $repo->getAccount($uid);
|
|
expect($result)
|
|
->toBeInstanceOf(AccountBalance::class)
|
|
->and($result->getUid())->tobe($uid);
|
|
});
|