public function testQueryFailure()
 {
     $this->setMockHttpResponse('QueryFailure.txt');
     $response = $this->gateway->query($this->referencedOptions)->send();
     $this->assertFalse($response->isSuccessful());
     $this->assertFalse($response->isRedirect());
     $this->assertSame('Authorization Declined.', $response->getMessage());
 }
Ejemplo n.º 2
0
 public function testSupportsQuery()
 {
     $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->query());
 }