Omnipay\PayPal\ExpressInContextGatewayTest::testAuthorizeSuccess PHP Method

testAuthorizeSuccess() public method

    public function testAuthorizeSuccess()
    {
        $this->setMockHttpResponse('ExpressPurchaseSuccess.txt');
        $response = $this->gateway->authorize($this->options)->send();
        $this->assertInstanceOf('\\Omnipay\\PayPal\\Message\\ExpressInContextAuthorizeResponse', $response);
        $this->assertFalse($response->isPending());
        $this->assertFalse($response->isSuccessful());
        $this->assertTrue($response->isRedirect());
        $this->assertEquals('https://www.paypal.com/checkoutnow?useraction=commit&token=EC-42721413K79637829', $response->getRedirectUrl());
    }