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());
 }
Пример #2
0
 public function testSupportsEnrollment()
 {
     $this->assertInstanceOf('Omnipay\\Common\\Message\\RequestInterface', $this->gateway->enrollmentCheck());
 }