/** * @magentoAppIsolation enabled * @magentoAppArea adminhtml */ public function testCRUD() { $this->_model->setData(array('code' => 'test_website', 'name' => 'test website', 'default_group_id' => 1)); /* emulate admin store */ $crud = new \Magento\TestFramework\Entity($this->_model, array('name' => 'new name')); $crud->testCrud(); }
/** * {@inheritdoc} */ public function setData($key, $value = null) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setData'); if (!$pluginInfo) { return parent::setData($key, $value); } else { return $this->___callPlugins('setData', func_get_args(), $pluginInfo); } }