Omnipay\PayPal\ExpressGatewayTest::testPurchaseSuccess PHP Method

testPurchaseSuccess() public method

public testPurchaseSuccess ( )
    public function testPurchaseSuccess()
    {
        $this->setMockHttpResponse('ExpressPurchaseSuccess.txt');
        $response = $this->gateway->purchase($this->options)->send();
        $this->assertInstanceOf('\\Omnipay\\PayPal\\Message\\ExpressAuthorizeResponse', $response);
        $this->assertFalse($response->isPending());
        $this->assertFalse($response->isSuccessful());
        $this->assertTrue($response->isRedirect());
        $this->assertEquals('https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=EC-42721413K79637829', $response->getRedirectUrl());
    }