protected getAttribute ( string $entityType, string $attributeCode ) : Mage_Eav_Model_Entity_Attribute_Abstract | false | ||
$entityType | string | |
$attributeCode | string | |
return | Mage_Eav_Model_Entity_Attribute_Abstract | false |
/** * 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); }