/** * Test retrieve values for select attribute */ public function testGetAttributeOptionsHash_TextAttribute() { $attribute = new Varien_Object(array('frontend_input' => 'text', 'source' => new Attribute_Source_Getter(), 'backend_type' => 'varchar')); $expectedHashTable = array('code' => 'text'); $mappingAttribute = $this->mockResource('xcom_mapping/attribute'); $mappingAttribute->expects($this->once())->method('getEavValuesByAttribute')->will($this->returnValue(array('code' => 'text'))); $actualHashTable = $this->_object->getAttributeOptionsHash($attribute); $this->assertEquals($expectedHashTable, $actualHashTable); }