Exemple #1
0
 /**
  * Test getter and setter of User property.
  *
  * @covers AppBundle\Entity\Vote::setUser()
  * @covers AppBundle\Entity\Vote::getUser()
  */
 public function testUser()
 {
     $user = new User();
     $this->vote->setUser($user);
     $this->assertEquals($user, $this->vote->getUser());
 }
 /**
  * {@inheritDoc}
  */
 public function getUser()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
     return parent::getUser();
 }