public function testGetAttributeTypeTable() { $prefix = 'catalog_product_link_attribute_'; $attributeType = 'int'; $attributeTypeTable = $prefix . $attributeType; $this->resource->expects($this->any())->method('getTable')->with($attributeTypeTable)->will($this->returnValue($attributeTypeTable)); $this->resource->expects($this->any())->method('getAttributeTypeTable')->with($attributeType)->will($this->returnValue($attributeTypeTable)); $this->assertEquals($attributeTypeTable, $this->model->getAttributeTypeTable($attributeType)); }
/** * {@inheritdoc} */ public function getAttributeTypeTable($type) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAttributeTypeTable'); if (!$pluginInfo) { return parent::getAttributeTypeTable($type); } else { return $this->___callPlugins('getAttributeTypeTable', func_get_args(), $pluginInfo); } }