public function testRefundReversal() { $oResponse = $this->object->refundReversal(123456, 321312); $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_RefundReversal', $oResponse); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); }
/** * Prepares the environment before running a test. */ protected function setUp() { parent::setUp(); $customerId = $this->_customerId; $shopId = $this->_shopId; $secret = $this->_secret; $language = $this->_language; $toolkitPassword = $this->_toolkitPassword; $oBackClient = new WirecardCEE_QMore_BackendClient(array('CUSTOMER_ID' => $customerId, 'SHOP_ID' => $shopId, 'SECRET' => $secret, 'LANGUAGE' => $language, 'PASSWORD' => $toolkitPassword)); $this->object = $oBackClient->refundReversal($this->_orderNumber, $this->_creditNumber); }