public function testApproveReversal() { $oResponse = $this->object->approveReversal(123456); $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_ApproveReversal', $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' => $this->_toolkitPassword)); $this->object = $oBackClient->approveReversal($this->_orderNumber); }