/**
  * @covers ::getEndpoint
  */
 public function testGetEndpoint()
 {
     $request = new VoidRequest($this->getHttpClient(), $this->getHttpRequest());
     $request->initialize(array('transactionReference' => 'id-12'));
     $this->assertEquals('/payments/authorization/id-12/void', $request->getEndpoint());
 }
 /**
  * @coversNothing
  */
 public function testVoid()
 {
     $this->setMockHttpResponse('AuthoriseVoidSuccess.http');
     $request = new VoidRequest($this->getHttpClient(), $this->getHttpRequest());
     $request->initialize(array('transactionReference' => '1SN458127W2399139'));
     $response = $request->send();
     $this->assertInstanceOf('Omnipay\\PaypalRest\\Message\\VoidResponse', $response);
     $this->assertTrue($response->isSuccessful());
     $this->assertEquals('1SN458127W2399139', $response->getTransactionReference());
 }