/** * Test activate/deactivate locale and chech isActivated method */ public function testActivateDeactivate() { $this->assertFalse($this->locale->isActivated()); $channel = new Channel(); $this->assertEntity($this->locale->addChannel($channel)); $this->assertTrue($this->locale->isActivated()); $this->assertEntity($this->locale->removeChannel($channel)); $this->assertFalse($this->locale->isActivated()); }
/** * {@inheritDoc} */ public function addChannel(\Pim\Bundle\CatalogBundle\Model\ChannelInterface $channel) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'addChannel', array($channel)); return parent::addChannel($channel); }