mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 07:15:06 +08:00
- 新增 FrequentAddress 类表示常用地址 - 添加 FrequentAddressRepoInterface 接口和 FrequentAddressRepo 实现类 - 在 ConfigProvider 中注册 FrequentAddressRepo - 编写单元测试验证查询功能
24 lines
577 B
PHP
24 lines
577 B
PHP
<?php
|
|
|
|
/**
|
|
* QueryFreqAddrTest.php@Pay
|
|
*
|
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
|
* Powered by PhpStorm
|
|
* Created on 2025/8/29
|
|
*/
|
|
|
|
use Singularity\HDK\Pay\Domain\Invoice\Aggregate\Address\FrequentAddress;
|
|
use Singularity\HDK\Pay\Infrastructure\Repository\FrequentAddressRepo;
|
|
|
|
use function Hyperf\Support\make;
|
|
|
|
it('should can query frequent invoice address', function () {
|
|
$uid = '61dbe752d4caa';
|
|
|
|
$addrRepo = make(FrequentAddressRepo::class);
|
|
$freq_addr = $addrRepo->findByUser($uid);
|
|
|
|
expect($freq_addr)->toBeInstanceOf(FrequentAddress::class);
|
|
});
|