diff options
author | Oliver Buchmann <o.buch91@gmail.com> | 2017-05-10 22:42:34 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2017-05-10 16:42:34 -0400 |
commit | daf39ee16aa15572b92f96bd7cc3705305a50b9d (patch) | |
tree | 570baefc579f9b7df1fa0dd4156148e746a5313c /tests/units/Model/TaskRecurrenceModelTest.php | |
parent | 136936ae3df66e8ffc49d721f0bb4de507506332 (diff) |
Change Due Date to Due Timestamp fixes #919 (#3249)
Diffstat (limited to 'tests/units/Model/TaskRecurrenceModelTest.php')
-rw-r--r-- | tests/units/Model/TaskRecurrenceModelTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/Model/TaskRecurrenceModelTest.php b/tests/units/Model/TaskRecurrenceModelTest.php index 85d77bc2..56f6cf84 100644 --- a/tests/units/Model/TaskRecurrenceModelTest.php +++ b/tests/units/Model/TaskRecurrenceModelTest.php @@ -106,7 +106,7 @@ class TaskRecurrenceModelTest extends Base $this->assertNotEmpty($task); $this->assertEquals(TaskModel::RECURRING_STATUS_PROCESSED, $task['recurrence_status']); $this->assertEquals(2, $task['recurrence_child']); - $this->assertEquals(1436486400, $task['date_due'], '', 2); + $this->assertEquals(1436561776, $task['date_due'], '', 2); $task = $taskFinderModel->getById(2); $this->assertNotEmpty($task); @@ -116,7 +116,7 @@ class TaskRecurrenceModelTest extends Base $this->assertEquals(TaskModel::RECURRING_BASEDATE_TRIGGERDATE, $task['recurrence_basedate']); $this->assertEquals(1, $task['recurrence_parent']); $this->assertEquals(2, $task['recurrence_factor']); - $this->assertEquals($dateParser->removeTimeFromTimestamp(strtotime('+2 days')), $task['date_due'], '', 2); + $this->assertEquals(strtotime('+2 days'), $task['date_due'], '', 2); $tags = $taskTagModel->getList(2); $this->assertCount(2, $tags); |