/** * @covers Core\Entity\StudentGroup::refreshTimeStamps */ public function testRefreshTimeStamps() { $studentGroup = new StudentGroup($this->mockEntityManager); $studentGroup->refreshTimeStamps(); $createdAt = $studentGroup->getCreatedAt(); $this->assertNotNull($createdAt); $this->assertNull($studentGroup->getUpdatedAt()); $studentGroup->refreshTimeStamps(); $updatedAt = $studentGroup->getUpdatedAt(); $this->assertNotNull($updatedAt); $this->assertEquals($createdAt, $studentGroup->getCreatedAt()); }
/** * {@inheritDoc} */ public function setVF($name, $value) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVF', array($name, $value)); return parent::setVF($name, $value); }
/** * @covers Core\Entity\StudentGroup::setUpdatedAt * @covers Core\Entity\StudentGroup::getUpdatedAt */ public function testSetGetUpdatedAt() { $dt = new DateTime(); $this->studentGroup->setUpdatedAt($dt); $this->assertEquals($dt, $this->studentGroup->getUpdatedAt()); }