public function testPreauthorizationFailure()
 {
     $this->setMockHttpResponse('PreauthorizationFailure.txt');
     $response = $this->gateway->preauthorization($this->paymentOptions)->send();
     $this->assertFalse($response->isSuccessful());
     $this->assertFalse($response->isRedirect());
     $this->assertSame('Authorization Declined.', $response->getMessage());
 }
示例#2
0
 public function testSupportsPreauthorization()
 {
     $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->preauthorization());
 }