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