public function testGetStepAttributes() { $attributes = new ArrayCollection(); $attributeManager = new AttributeManager(); $attributeManager->setAttributes($attributes); $this->assertEquals($attributes, $attributeManager->getAttributes()); }
/** * Get attribute names mapped to property paths if any. * * @return array */ public function getAttributesMapping() { $mapping = array(); /** @var Attribute $attribute */ foreach ($this->attributeManager->getAttributes() as $attribute) { if ($attribute->getPropertyPath()) { $mapping[$attribute->getName()] = $attribute->getPropertyPath(); } } return $mapping; }