/** * 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->recurPayment($this->_sourceOrderNumber, $this->_amount, $this->_currency, $this->_orderDescription, $this->_orderNumber, $this->_depositFlag); }
public function testRecurPayment() { $object = new WirecardCEE_QMore_BackendClient(array('WirecardCEEQMoreConfig' => array('CUSTOMER_ID' => 'D200001', 'SHOP_ID' => 'seamless', 'SECRET' => 'B8AKTPWBRMNBV455FG6M2DANE99WU2', 'LANGUAGE' => 'en', 'PASSWORD' => 'jcv45z'))); $oResponse = $object->recurPayment('23473341', '1,2', 'EUR', __METHOD__, '', false); $this->assertInstanceOf('WirecardCEE_QMore_Response_Backend_RecurPayment', $oResponse); $this->assertNotEquals('', $oResponse->getOrderNumber()); $this->assertEquals($oResponse->getStatus(), 0); $this->assertEmpty($oResponse->getErrors()); $this->assertFalse($oResponse->hasFailed()); }