mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 05:35:08 +08:00
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);
|
||
|
|
});
|