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