Omnipay\WechatPay\GatewayTest::testPurchase PHP Метод

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

public testPurchase ( )
    public function testPurchase()
    {
        $order = array('body' => 'test', 'out_trade_no' => date('YmdHis'), 'total_fee' => '0.01', 'spbill_create_ip' => '114.119.110.120');
        /**
         * @var CreateOrderResponse $response
         */
        $response = $this->gateway->purchase($order)->send();
        $this->assertFalse($response->isSuccessful());
        $this->assertFalse($response->isRedirect());
    }