Пример #1
0
 /**
  * @coversNothing
  */
 public function testCreateCard()
 {
     $this->setMockHttpResponse('CreateCardSuccess.http');
     $request = new CreateCardRequest($this->getHttpClient(), $this->getHttpRequest());
     $request->initialize(array('card' => $this->getValidCard(), 'payerId' => 'testPayerId'));
     $response = $request->send();
     $this->assertInstanceOf('Omnipay\\PaypalRest\\Message\\CreateCardResponse', $response);
     $this->assertTrue($response->isSuccessful());
     $this->assertEquals('CARD-2F417848LC187391NKRABZXQ', $response->getTransactionReference());
 }