public function testBeforeSave() { $this->assertNull($this->entity->getCreatedAt()); $this->entity->beforeSave(); $this->assertInstanceOf('\\DateTime', $this->entity->getCreatedAt()); }