2025-08-18 14:08:30 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* QueryAccountInformationTest.php@Pay
|
|
|
|
|
*
|
|
|
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
|
|
|
* Powered by PhpStorm
|
|
|
|
|
* Created on 2025/8/18
|
|
|
|
|
*/
|
|
|
|
|
|
2025-08-27 11:06:52 +08:00
|
|
|
use Singularity\HDK\Pay\Domain\Account\Aggregate\Account\AccountBalance;
|
2025-11-28 18:25:52 +08:00
|
|
|
use Singularity\HDK\Pay\Infrastructure\Repository\AccountRepo;
|
2025-08-18 14:08:30 +08:00
|
|
|
|
|
|
|
|
use function Hyperf\Support\make;
|
|
|
|
|
|
|
|
|
|
it('should be able to query account information', function () {
|
|
|
|
|
$uid = '123456';
|
2025-11-28 18:25:52 +08:00
|
|
|
$repo = make(AccountRepo::class);
|
2025-08-18 14:08:30 +08:00
|
|
|
$result = $repo->getAccount($uid);
|
|
|
|
|
expect($result)
|
|
|
|
|
->toBeInstanceOf(AccountBalance::class)
|
|
|
|
|
->and($result->getUid())->tobe($uid);
|
|
|
|
|
});
|