/** * @magentoAppIsolation enabled */ public function testCRUD() { $this->_model->setData(array('code' => 'test_website', 'name' => 'test website', 'default_group_id' => 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(); }