Exemplo n.º 1
0
 public function testPreUpdate()
 {
     $this->assertNull($this->entity->getUpdatedAt());
     $this->entity->preUpdate();
     $this->assertInstanceOf('\\DateTime', $this->entity->getUpdatedAt());
     $this->assertEquals('UTC', $this->entity->getUpdatedAt()->getTimezone()->getName());
 }