public function testUser()
 {
     $this->assertEmpty($this->reservation->getUser());
     $this->reservation->setUser($this->user);
     $this->assertEquals($this->user, $this->reservation->getUser());
 }
Пример #2
0
 /**
  * @covers AppBundle\Entity\Reservation::setUser
  * Implement testSetUser().
  */
 public function testSetUser()
 {
     $this->assertEmpty($this->reservation->getUser());
     $this->reservation->setUser($this->user);
     $this->assertNotEmpty($this->reservation->getUser());
 }