Ejemplo n.º 1
0
 /**
  * @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());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function setVF($name, $value)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVF', array($name, $value));
     return parent::setVF($name, $value);
 }
Ejemplo n.º 3
0
 /**
  * @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());
 }