/** * {@inheritdoc} */ public function setAttributeCode($data) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setAttributeCode'); if (!$pluginInfo) { return parent::setAttributeCode($data); } else { return $this->___callPlugins('setAttributeCode', func_get_args(), $pluginInfo); } }
public function testCRUD() { $this->_model->setAttributeCode('test')->setEntityTypeId(\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Eav\\Model\\Config')->getEntityType('catalog_product')->getId())->setFrontendLabel('test'); $crud = new \Magento\TestFramework\Entity($this->_model, ['frontend_label' => uniqid()]); $crud->testCrud(); }