/** * @covers AppBundle\Entity\Reservation::setDatetime * Implement testSetDatetime(). */ public function testSetDatetime() { $this->assertNotEmpty($this->reservation->getDatetime()); $this->reservation->setDatetime("15-11-2015T12:30:00"); $this->assertNotEmpty($this->reservation->getDatetime()); $this->assertEquals("15-11-2015T12:30:00", $this->reservation->getDatetime()); }
public function testDatetime() { $this->assertEmpty($this->reservation->getDatetime()); $this->reservation->setDatetime($this->datetime); $this->assertEquals($this->datetime, $this->reservation->getDatetime()); }