Files
yuyin-php/extend/adapay_sdk_php_v1.4.4/tests/UnFreezeAccountTest.php

1 line
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use PHPUnit\Framework\TestCase;
class UnFreezeAccountTest extends TestCase
{
public function testCreate()
{
$adaPay = new AdaPay\AdaPay();
$adaPay->gateWayType = 'api';
# 初始化解冻账户对象类
$obj = new \AdaPaySdk\UnFreezeAccount();
$un_fz_params = array(
'app_id'=> 'app_7d87c043-aae3-4357-9b2c-269349a980d6',
'order_no'=> 'FZ_'. date("YmdHis").rand(100000, 999999),
'account_freeze_id'=> '002112020111717230410174704123849117696'
);
# 创建解冻账户
$obj->create($un_fz_params);
print("创建解冻支付对象".$obj->isError().'=>'.json_encode($obj->result)."\n");
$this->assertTrue($obj->isError());
}
public function testList()
{
$adaPay = new AdaPay\AdaPay();
$adaPay->gateWayType = 'api';
# 初始化解冻账户对象类
$obj = new \AdaPaySdk\FreezeAccount();
$un_fz_params = array(
'app_id'=> 'app_7d87c043-aae3-4357-9b2c-269349a980d6',
'order_no'=> 'FZ_'. date("YmdHis").rand(100000, 999999),
'status'=> 'succeeded', //succeeded-成功failed-失败pending-处理中
'page_index'=> 1,
'page_size'=> 1,
'created_gte'=> '',
'created_lte'=> ''
);
# 查询解冻账户
$obj->queryList($un_fz_params);
print("创建解冻支付对象".$obj->isError().'=>'.json_encode($obj->result)."\n");
$this->assertTrue($obj->isError());
}
}