예제 #1
0
 /**
  * @covers Core\Entity\Vocation::setUpdatedBy
  * @covers Core\Entity\Vocation::getUpdatedBy
  */
 public function testSetGetUpdatedBy()
 {
     $mockUpdatedBy = $this->getMockBuilder('Core\\Entity\\LisUser')->getMock();
     $this->vocation->setUpdatedBy($mockUpdatedBy);
     $this->assertEquals($mockUpdatedBy, $this->vocation->getUpdatedBy());
 }
예제 #2
0
 /**
  * @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 setVF($name, $value)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVF', array($name, $value));
     return parent::setVF($name, $value);
 }