summaryrefslogtreecommitdiff
path: root/tests/units/Model/TaskCreationModelTest.php
diff options
context:
space:
mode:
authorOliver Buchmann <o.buch91@gmail.com>2017-05-10 22:42:34 +0200
committerFrédéric Guillot <fred@kanboard.net>2017-05-10 16:42:34 -0400
commitdaf39ee16aa15572b92f96bd7cc3705305a50b9d (patch)
tree570baefc579f9b7df1fa0dd4156148e746a5313c /tests/units/Model/TaskCreationModelTest.php
parent136936ae3df66e8ffc49d721f0bb4de507506332 (diff)
Change Due Date to Due Timestamp fixes #919 (#3249)
Diffstat (limited to 'tests/units/Model/TaskCreationModelTest.php')
-rw-r--r--tests/units/Model/TaskCreationModelTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/units/Model/TaskCreationModelTest.php b/tests/units/Model/TaskCreationModelTest.php
index ce9996d9..7723bece 100644
--- a/tests/units/Model/TaskCreationModelTest.php
+++ b/tests/units/Model/TaskCreationModelTest.php
@@ -248,7 +248,7 @@ class TaskCreationModelTest extends Base
public function testDateDue()
{
- $date = '2014-11-23';
+ $date = '2014-11-23 14:30';
$timestamp = strtotime('+2days');
$projectModel = new ProjectModel($this->container);
$taskCreationModel = new TaskCreationModel($this->container);
@@ -262,12 +262,12 @@ class TaskCreationModelTest extends Base
$task = $taskFinderModel->getById(1);
$this->assertNotEmpty($task);
$this->assertEquals(1, $task['id']);
- $this->assertEquals($date, date('Y-m-d', $task['date_due']));
+ $this->assertEquals($date, date('Y-m-d H:i', $task['date_due']));
$task = $taskFinderModel->getById(2);
$this->assertNotEmpty($task);
$this->assertEquals(2, $task['id']);
- $this->assertEquals(date('Y-m-d 00:00', $timestamp), date('Y-m-d 00:00', $task['date_due']));
+ $this->assertEquals(date('Y-m-d H:i', $timestamp), date('Y-m-d H:i', $task['date_due']));
$task = $taskFinderModel->getById(3);
$this->assertEquals(3, $task['id']);
@@ -398,6 +398,6 @@ class TaskCreationModelTest extends Base
$task = $taskFinderModel->getById(1);
$this->assertNotEmpty($task);
- $this->assertEquals('2050-01-10 00:00', date('Y-m-d H:i', $task['date_due']));
+ $this->assertEquals('2050-01-10 12:30', date('Y-m-d H:i', $task['date_due']));
}
}