/** * Test getter/setter for channel property */ public function testGetSetChannel() { $this->assertNull($this->completeness->getChannel()); $expectedChannel = $this->createChannel('channel'); $this->assertEntity($this->completeness->setChannel($expectedChannel)); $this->assertEquals($expectedChannel, $this->completeness->getChannel()); }
/** * {@inheritDoc} */ public function setChannel(\Pim\Bundle\CatalogBundle\Model\ChannelInterface $channel) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setChannel', array($channel)); return parent::setChannel($channel); }