Omnipay\PayPal\ExpressGatewayTest::testOrderFailure PHP Method

testOrderFailure() public method

public testOrderFailure ( )
    public function testOrderFailure()
    {
        $this->setMockHttpResponse('ExpressOrderFailure.txt');
        $response = $this->gateway->order($this->options)->send();
        $this->assertFalse($response->isPending());
        $this->assertFalse($response->isSuccessful());
        $this->assertFalse($response->isRedirect());
        $this->assertNull($response->getTransactionReference());
        $this->assertSame('This transaction cannot be processed. The amount to be charged is zero.', $response->getMessage());
    }