protected function getAttribute($entityType, $attributeCode) { return \Mage::getModel('eav/config')->getAttribute($entityType, $attributeCode); }
/** * Should return an attribute model (from the abstract class) * @test */ public function getAttribute() { $result = $this->command->getAttribute('catalog_product', 'sku'); $this->assertInstanceOf('Magento\\Eav\\Model\\Entity\\Attribute\\AbstractAttribute', $result); }