Fix test bugs

This commit is contained in:
Dennis Eichhorn 2017-10-06 13:19:32 +02:00
parent 731459ca58
commit 940840e860
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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();
}
/**