/** * @covers Core\Entity\Rooms::refreshTimeStamps */ public function testRefreshTimeStamps() { $room = new Rooms($this->mockEntityManager); $room->refreshTimeStamps(); $createdAt = $room->getCreatedAt(); $this->assertNotNull($createdAt); $this->assertNull($room->getUpdatedAt()); $room->refreshTimeStamps(); $updatedAt = $room->getUpdatedAt(); $this->assertNotNull($updatedAt); $this->assertEquals($createdAt, $room->getCreatedAt()); }
/** * {@inheritDoc} */ public function setVF($name, $value) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVF', array($name, $value)); return parent::setVF($name, $value); }
/** * @covers Core\Entity\Rooms::setUpdatedAt * @covers Core\Entity\Rooms::getUpdatedAt */ public function testSetGetUpdatedAt() { $dt = new DateTime(); $this->room->setUpdatedAt($dt); $this->assertEquals($dt, $this->room->getUpdatedAt()); }