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