/** * {@inheritdoc} */ public function get($attributeCode) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'get'); if (!$pluginInfo) { return parent::get($attributeCode); } else { return $this->___callPlugins('get', func_get_args(), $pluginInfo); } }
public function testGet() { $attributeCode = 'some attribute code'; $this->eavAttributeRepositoryMock->expects($this->once())->method('get')->with(\Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE, $attributeCode); $this->model->get($attributeCode); }