Omnipay\PayPal\RestGatewayTest::testAuthorize PHP Метод

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

public testAuthorize ( )
    public function testAuthorize()
    {
        $this->setMockHttpResponse('RestPurchaseSuccess.txt');
        $response = $this->gateway->authorize($this->options)->send();
        $this->assertTrue($response->isSuccessful());
        $this->assertEquals('44E89981F8714392Y', $response->getTransactionReference());
        $this->assertNull($response->getMessage());
    }