Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 /**
  * {@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);
     }
 }