public function testBookBackFailure()
 {
     $this->setMockHttpResponse('BookBackFailure.txt');
     $response = $this->gateway->bookBack($this->referencedOptions)->send();
     $this->assertFalse($response->isSuccessful());
     $this->assertFalse($response->isRedirect());
     $this->assertSame('Expiration date invalid.', $response->getMessage());
 }
Esempio n. 2
0
 public function testSupportsBookBack()
 {
     $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->bookBack());
 }