Exemplo n.º 1
0
 /**
  * @magentoAppIsolation enabled
  */
 public function testCRUD()
 {
     Mage::app()->setCurrentStore(Mage::app()->getStore(Mage_Core_Model_App::ADMIN_STORE_ID));
     $this->_model->setName('test');
     $crud = new Magento_Test_Entity($this->_model, array('name' => uniqid()));
     $crud->testCrud();
 }
 /**
  * Perform multiple calls to subresources of specified resource
  *
  * @param string $resourceInstanceId
  * @return Mage_Api2_Model_Response
  */
 protected function _multicall($resourceInstanceId)
 {
     if (!$this->_multicall) {
         $this->_multicall = Mage::getModel('api2/multicall');
     }
     $resourceName = $this->getResourceType();
     return $this->_multicall->call($resourceInstanceId, $resourceName, $this->getRequest());
 }