コード例 #1
0
ファイル: MagentoTest.php プロジェクト: punkstar/testrig
 /**
  * @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());
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->getCategories();
 }
コード例 #6
0
 public function __construct($_storeID = 1)
 {
     parent::__construct($_storeID);
     $this->getCategories();
 }