public function testUser() { $this->assertEmpty($this->reservation->getUser()); $this->reservation->setUser($this->user); $this->assertEquals($this->user, $this->reservation->getUser()); }
/** * @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()); }