예제 #1
0
 /**
  * @coversNothing
  */
 public function testDeleteCard()
 {
     $this->setMockHttpResponse('DeleteCardSuccess.http');
     $request = new DeleteCardRequest($this->getHttpClient(), $this->getHttpRequest());
     $request->initialize(array('cardReference' => 'CARD-2F417848LC187391NKRABZXQ'));
     $response = $request->send();
     $this->assertInstanceOf('Omnipay\\PaypalRest\\Message\\DeleteCardResponse', $response);
     $this->assertTrue($response->isSuccessful());
 }
 /**
  * @covers ::getData
  */
 public function testGetData()
 {
     $request = new DeleteCardRequest($this->getHttpClient(), $this->getHttpRequest());
     $this->assertEquals(array(), $request->getData());
 }