Omnipay\Alipay\Tests\AopAppGatewayTest::testPurchase PHP Метод

testPurchase() публичный Метод

public testPurchase ( )
    public function testPurchase()
    {
        /**
         * @var AopTradeAppPayResponse $response
         */
        $response = $this->gateway->purchase(['biz_content' => ['subject' => 'test', 'out_trade_no' => date('YmdHis') . mt_rand(1000, 9999), 'total_amount' => '0.01', 'product_code' => 'QUICK_MSECURITY_PAY']])->send();
        $this->assertTrue($response->isSuccessful());
        $this->assertFalse($response->isRedirect());
        $this->assertNotEmpty($response->getOrderString());
    }