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