/** * {@inheritDoc} */ public function removeAttribute(\Pim\Bundle\CatalogBundle\Model\AttributeInterface $attribute) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeAttribute', array($attribute)); return parent::removeAttribute($attribute); }
/** * @expectedException InvalidArgumentException */ public function testRemoveIdentifierAttribute() { $attribute = $this->getAttributeMock('pim_catalog_identifier'); $this->family->removeAttribute($attribute); }