public function testSendSuccess() { $this->setMockHttpResponse('FetchIssuersSuccess.txt'); $response = $this->request->send(); $this->assertTrue($response->isSuccessful()); $issuers = $response->getIssuers(); $this->assertEquals(3, count($issuers)); $issuer = $issuers[0]; $this->assertInstanceOf('\\Omnipay\\Common\\Issuer', $issuer); $this->assertEquals('121', $issuer->getId()); $this->assertEquals('Test Issuer', $issuer->getName()); }
public function testSendSuccess() { $this->setMockHttpResponse('FetchPaymentMethodsSuccess.txt'); $response = $this->request->send(); $this->assertTrue($response->isSuccessful()); $methods = $response->getPaymentMethods(); $this->assertEquals(9, count($methods)); $method = $methods[0]; $this->assertInstanceOf('\\Omnipay\\Common\\PaymentMethod', $method); $this->assertEquals('banktransfer', $method->getId()); $this->assertEquals('Bank transfer', $method->getName()); }