Example #1
0
 /**
  * Retrieve names of attributes belonging to specified group
  *
  * @param string $groupName Name of an attribute group
  * @return array
  */
 public function getAttributeNames($groupName)
 {
     return $this->_dataStorage->get($groupName, array());
 }
Example #2
0
 public function testGetAttributeNames()
 {
     $expectedResult = ['fixture_attribute_one', 'fixture_attribute_two'];
     $this->_dataStorage->expects($this->once())->method('get')->with('some_group')->will($this->returnValue($expectedResult));
     $this->assertSame($expectedResult, $this->_model->getAttributeNames('some_group'));
 }