コード例 #1
0
ファイル: VocationTest.php プロジェクト: parnustk/lisbackend
 /**
  * @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());
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function refreshTimeStamps()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'refreshTimeStamps', array());
     return parent::refreshTimeStamps();
 }