From bbf2bd6697fb647e2b9c8434e06871a485eacf67 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 19 Feb 2020 22:24:22 +0100 Subject: [PATCH] add tests --- Models/Report.php | 13 +++++++------ Models/Template.php | 17 +++++++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Models/Report.php b/Models/Report.php index b40c4b2..d9373be 100644 --- a/Models/Report.php +++ b/Models/Report.php @@ -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, ]; } diff --git a/Models/Template.php b/Models/Template.php index ebbd3a5..92c4218 100644 --- a/Models/Template.php +++ b/Models/Template.php @@ -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, ]; }