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