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