From 940840e860b45f95548ab3a98e6f11504b15fd55 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 6 Oct 2017 13:19:32 +0200 Subject: [PATCH] Fix test bugs --- Admin/Installer.php | 1 + Models/Task.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 2c11e1c..6ef51e7 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -53,6 +53,7 @@ class Installer extends InstallerAbstract `task_priority` tinyint(1) NOT NULL, `task_due` datetime NOT NULL, `task_done` datetime DEFAULT NULL, + `task_start` datetime DEFAULT NULL, `task_schedule` int(11) DEFAULT NULL, `task_created_by` int(11) NOT NULL, `task_created_at` datetime NOT NULL, diff --git a/Models/Task.php b/Models/Task.php index 1ed48f7..c5d5e8b 100644 --- a/Models/Task.php +++ b/Models/Task.php @@ -146,7 +146,7 @@ class Task implements \JsonSerializable public function setClosable(bool $closable) /* : void */ { - $this->isClosable = $closabe; + $this->isClosable = $closable; } public function isClosable() : bool @@ -227,7 +227,7 @@ class Task implements \JsonSerializable */ public function getStart() : \DateTime { - return $this->createdAt ?? new \DateTime(); + return $this->start ?? new \DateTime(); } /**