/** * {@inheritDoc} */ public function setCreatedBy(\Core\Entity\LisUser $createdBy) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedBy', array($createdBy)); return parent::setCreatedBy($createdBy); }
/** * @covers Core\Entity\Module::setCreatedBy * @covers Core\Entity\Module::getCreatedBy */ public function testSetGetCreatedBy() { $mockLisUser = $this->getMockBuilder('Core\\Entity\\LisUser')->getMock(); $this->module->setCreatedBy($mockLisUser); $this->assertEquals($mockLisUser, $this->module->getCreatedBy()); }