Omnipay\PayPal\ExpressGatewayTest::testCompletePurchaseFailureRedirect PHP Method

testCompletePurchaseFailureRedirect() public method

    public function testCompletePurchaseFailureRedirect()
    {
        $this->setMockHttpResponse('ExpressCompletePurchaseFailureRedirect.txt');
        $response = $this->gateway->completePurchase($this->options)->send();
        $this->assertFalse($response->isPending());
        $this->assertFalse($response->isSuccessful());
        $this->assertTrue($response->isRedirect());
        $this->assertEquals('ASDFASDFASDF', $response->getTransactionReference());
        $this->assertSame('This transaction couldn\'t be completed. Please redirect your customer to PayPal.', $response->getMessage());
    }