/** * Test related method */ public function testAttributeLabel() { $attributeAsLabel = $this->getAttributeMock(); $family = $this->getFamilyMock($attributeAsLabel); $value = $this->getValueMock($attributeAsLabel, 'bar'); $this->product->setId(10); $this->product->setFamily($family); $this->product->addValue($value); $this->assertEquals('bar', $this->product->getLabel()); }
/** * {@inheritDoc} */ public function setId($id) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', array($id)); return parent::setId($id); }