Exemplo n.º 1
0
 /**
  * @covers Core\Entity\Student::refreshTimeStamps
  */
 public function testRefreshTimeStamps()
 {
     $student = new Student($this->mockEntityManager);
     $student->refreshTimeStamps();
     $createdAt = $student->getCreatedAt();
     $this->assertNotNull($createdAt);
     $this->assertNull($student->getUpdatedAt());
     $student->refreshTimeStamps();
     $updatedAt = $student->getUpdatedAt();
     $this->assertNotNull($updatedAt);
     $this->assertEquals($createdAt, $student->getCreatedAt());
 }
 /**
  * {@inheritDoc}
  */
 public function refreshTimeStamps()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'refreshTimeStamps', array());
     return parent::refreshTimeStamps();
 }