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()); }
public function testSupportsBookBack() { $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->bookBack()); }