/** * Tests WirecardCEE_QMore_FrontendClient->getResponse() */ public function testSetPluginVersion() { $sPluginVersion = $this->object->generatePluginVersion('phpunit', '1.0.0', 'phpunit', '1.0.0', array('phpunit' => '3.5.15')); $this->object->setPluginVersion($sPluginVersion); $expected = array_merge($this->aExpectedRequestData, array(WirecardCEE_QMore_FrontendClient::PLUGIN_VERSION => $sPluginVersion)); $this->assertAttributeEquals($expected, '_requestData', $this->object); }
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { parent::setUp(); $pluginVersion = WirecardCEE_QMore_FrontendClient::generatePluginVersion('InitiationTest', '0.0.0', 'defaultInstance', '0.0.0'); $oBackClient = new WirecardCEE_QMore_BackendClient(array('CUSTOMER_ID' => $this->_customerId, 'SHOP_ID' => $this->_shopId, 'SECRET' => $this->_secret, 'LANGUAGE' => $this->_language, 'PASSWORD' => $this->_toolkitPassword)); $this->object = $oBackClient->getOrderDetails($this->_orderNumber)->getOrder()->getPayments()->current(); }
public function getPluginVersion() { return WirecardCEE_QMore_FrontendClient::generatePluginVersion('Magento', Mage::getVersion(), $this->_pluginName, $this->_pluginVersion); }