Omnipay\PayPal\Message\ExpressAuthorizeResponseTest::testExpressPurchaseFailure PHP Метод

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

    public function testExpressPurchaseFailure()
    {
        $httpResponse = $this->getMockHttpResponse('ExpressPurchaseFailure.txt');
        $response = new ExpressAuthorizeResponse($this->getMockRequest(), $httpResponse->getBody());
        $this->assertFalse($response->isPending());
        $this->assertFalse($response->isSuccessful());
        $this->assertNull($response->getTransactionReference());
        $this->assertNull($response->getTransactionReference());
        $this->assertSame('This transaction cannot be processed. The amount to be charged is zero.', $response->getMessage());
    }