/**
  * {@inheritDoc}
  */
 public function setAdministrator($administrator)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setAdministrator', array($administrator));
     return parent::setAdministrator($administrator);
 }
Example #2
0
 /**
  * @covers Core\Entity\LisUser::setAdministrator
  * @covers Core\Entity\LisUser::getAdministrator
  */
 public function testSetGetAdministrator()
 {
     $admin = $this->getMockBuilder('Core\\Entity\\Administrator')->getMock();
     $this->lisuser->setAdministrator($admin);
     $this->assertEquals($this->lisuser->getAdministrator(), $admin);
 }