public function testPreUpdate() { $this->entity->preUpdate(); $this->assertEquals($this->entity->getUpdatedAt()->format('Y-m-d'), date('Y-m-d')); }