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

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

public testPurchase ( )
    public function testPurchase()
    {
        /**
         * @var LegacyExpressPurchaseResponse $response
         */
        $response = $this->gateway->purchase($this->options)->send();
        $this->assertTrue($response->isSuccessful());
        $this->assertTrue($response->isRedirect());
        $this->assertNotEmpty($response->getRedirectUrl());
    }