Ejemplo n.º 1
0
 /**
  * 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 removeChannel(\Pim\Bundle\CatalogBundle\Model\ChannelInterface $channel)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'removeChannel', array($channel));
     return parent::removeChannel($channel);
 }