mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 05:35:08 +08:00
build(hyperf): 迁移到 hyperf3.1
This commit is contained in:
@@ -21,7 +21,7 @@ test(
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
function () {
|
||||
$service = new GoodsRpc('http://192.168.2.218:9611');
|
||||
$service = new GoodsRpc('http://192.168.2.246:9611');
|
||||
$goods = $service->find(
|
||||
1,
|
||||
[
|
||||
|
||||
@@ -18,7 +18,7 @@ use Singularity\HDK\Pay\Sdk\StripeRpc;
|
||||
|
||||
test('能够正常创建 Stripe 订单', function () {
|
||||
/** @var StripeRpc $service */
|
||||
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.218:9611']);
|
||||
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.246:9611']);
|
||||
$order = $service->createSession(
|
||||
money: Money::USD(51),
|
||||
uid: uniqid('NAT_'),
|
||||
@@ -33,7 +33,7 @@ test('能够正常创建 Stripe 订单', function () {
|
||||
|
||||
test('能够正常获取 Stripe 配置信息', function () {
|
||||
/** @var StripeRpc $service */
|
||||
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.218:9611']);
|
||||
$service = \Hyperf\Support\make(StripeRpc::class, ['baseUrl' => 'http://192.168.2.246:9611']);
|
||||
$configures = $service->getConfigurations();
|
||||
|
||||
expect($configures)
|
||||
|
||||
Reference in New Issue
Block a user