You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
758 B
25 lines
758 B
<?php
|
|
|
|
|
|
namespace Alipay\EasySDK\Test\payment\huabei;
|
|
|
|
|
|
use Alipay\EasySDK\Kernel\Factory;
|
|
use Alipay\EasySDK\Payment\Huabei\Models\HuabeiConfig;
|
|
use Alipay\EasySDK\Test\TestAccount;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ClientTest extends TestCase
|
|
{
|
|
public function testCreate()
|
|
{
|
|
$account = new TestAccount();
|
|
Factory::setOptions($account->getTestAccount());
|
|
$config = new HuabeiConfig();
|
|
$config->hbFqNum = '3';
|
|
$config->hbFqSellerPercent = '0';
|
|
$result = Factory::payment()->huabei()->create("Iphone6 16G", microtime(), "0.10", "2088002656718920", $config);
|
|
$this->assertEquals('10000', $result->code);
|
|
$this->assertEquals('Success', $result->msg);
|
|
}
|
|
} |