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