/** * {@inheritDoc} */ public function getAttributeRequirementKey(\Pim\Bundle\CatalogBundle\Model\AttributeRequirementInterface $requirement) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributeRequirementKey', array($requirement)); return parent::getAttributeRequirementKey($requirement); }
/** * Test related method */ public function testGetAttributeRequirementKey() { $requirement = $this->getAttributeRequirementMock('bar', 'foo'); $this->assertEquals('foo_bar', $this->family->getAttributeRequirementKey($requirement)); }