Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function setCreatedBy($createdBy)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedBy', array($createdBy));
     return parent::setCreatedBy($createdBy);
 }
Ejemplo n.º 2
0
 /**
  * @covers Core\Entity\Rooms::setCreatedBy
  * @covers Core\Entity\Rooms::getCreatedBy
  */
 public function testSetGetCreatedBy()
 {
     $mockLisUser = $this->getMockBuilder('Core\\Entity\\LisUser')->getMock();
     $this->room->setCreatedBy($mockLisUser);
     $this->assertEquals($mockLisUser, $this->room->getCreatedBy());
 }