add tests

This commit is contained in:
Dennis Eichhorn 2020-02-19 22:24:22 +01:00
parent 7dcd5f41e5
commit bbf2bd6697
2 changed files with 16 additions and 14 deletions

View File

@ -288,12 +288,13 @@ class Report implements \JsonSerializable
public function toArray() : array public function toArray() : array
{ {
return [ return [
'id' => $this->id, 'id' => $this->id,
'createdBy' => $this->createdBy, 'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt, 'createdAt' => $this->createdAt,
'name' => $this->title, 'name' => $this->title,
'description' => $this->description, 'description' => $this->description,
'status' => $this->status, 'descriptionRaw' => $this->descriptionRaw,
'status' => $this->status,
]; ];
} }

View File

@ -382,14 +382,15 @@ class Template implements \JsonSerializable
public function toArray() : array public function toArray() : array
{ {
return [ return [
'id' => $this->id, 'id' => $this->id,
'createdBy' => $this->createdBy, 'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt, 'createdAt' => $this->createdAt,
'name' => $this->name, 'name' => $this->name,
'description' => $this->description, 'description' => $this->description,
'status' => $this->status, 'descriptionRaw' => $this->descriptionRaw,
'datatype' => $this->datatype, 'status' => $this->status,
'standalone' => $this->isStandalone, 'datatype' => $this->datatype,
'standalone' => $this->isStandalone,
]; ];
} }