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