/** * @test */ public function testTrailingSlashesOnBaseUrl() { $this->_obj->expects($this->any())->method('getVersion')->will($this->returnValue('1.7')); $this->_obj->setOpt('base_url', 'http://www.nicksays.co.uk/'); $this->assertEquals('http://www.nicksays.co.uk/1_7', $this->_obj->getBaseUrl()); $this->_obj->setOpt('base_url', 'http://www.nicksays.co.uk'); $this->assertEquals('http://www.nicksays.co.uk/1_7', $this->_obj->getBaseUrl()); }
/** * Populate the fields of this class * @since 1.0.0 * @param mixed $ID The product id * @return void */ private function _populate_fields($ID) { $magento_model = new Magento(); $product = $magento_model->get_api_result($this::RESOURCE_INFO, $ID); foreach ($this as $key => $value) { $this->{$key} = isset($product[$key]) ? $product[$key] : $this->{$key}; } unset($magento); }
public function __construct($_variables) { parent::__construct(); $this->loadClassVariables($_variables); $this->productAttributeSave(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->getCategories(); }
public function __construct($_storeID = 1) { parent::__construct($_storeID); $this->getCategories(); }