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
{
return [
'id' => $this->id,
'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt,
'name' => $this->title,
'description' => $this->description,
'status' => $this->status,
'id' => $this->id,
'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt,
'name' => $this->title,
'description' => $this->description,
'descriptionRaw' => $this->descriptionRaw,
'status' => $this->status,
];
}

View File

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