public function testEnrollmentFailure() { $this->setMockHttpResponse('EnrollmentFailure.txt'); $response = $this->gateway->enrollmentCheck($this->paymentOptions)->send(); $this->assertFalse($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('Cardholder not participating.', $response->getMessage()); }
public function testSupportsEnrollment() { $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->enrollmentCheck()); }