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()); }