/** * @covers ::getData */ public function testGetData() { $request = new VoidRequest($this->getHttpClient(), $this->getHttpRequest()); $this->assertEquals(array(), $request->getData()); }
/** * @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()); }