コード例 #1
0
ファイル: StoreTest.php プロジェクト: relue/magento2
 /**
  * @magentoAppIsolation enabled
  */
 public function testCRUD()
 {
     $this->_model->setData(array('code' => 'test', 'website_id' => 1, 'group_id' => 1, 'name' => 'test name', 'sort_order' => 0, 'is_active' => 1));
     /* emulate admin store */
     Mage::app()->getStore()->setId(Mage_Core_Model_App::ADMIN_STORE_ID);
     $crud = new Magento_Test_Entity($this->_model, array('name' => 'new name'));
     $crud->testCrud();
 }