diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-11 21:01:56 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-11 21:01:56 -0400 |
commit | 81ef14ba35b101370f7e1c857366a2efdf66f981 (patch) | |
tree | c4c8f72e6ade097f094935488c427aa7632ccff9 /tests/units | |
parent | 3d4d28cfc64213356516ba095befa32b55e79e3d (diff) |
UnitTest: Add delta for timestamps comparison
Diffstat (limited to 'tests/units')
-rw-r--r-- | tests/units/TaskDuplicationTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/TaskDuplicationTest.php b/tests/units/TaskDuplicationTest.php index f991efd6..cd791312 100644 --- a/tests/units/TaskDuplicationTest.php +++ b/tests/units/TaskDuplicationTest.php @@ -548,7 +548,7 @@ class TaskDuplicationTest extends Base $this->assertNotEmpty($task); $this->assertEquals(Task::RECURRING_STATUS_PROCESSED, $task['recurrence_status']); $this->assertEquals(2, $task['recurrence_child']); - $this->assertEquals(1436561776, $task['date_due']); + $this->assertEquals(1436561776, $task['date_due'], '', 2); $task = $tf->getById(2); $this->assertNotEmpty($task); @@ -558,6 +558,6 @@ class TaskDuplicationTest extends Base $this->assertEquals(Task::RECURRING_BASEDATE_TRIGGERDATE, $task['recurrence_basedate']); $this->assertEquals(1, $task['recurrence_parent']); $this->assertEquals(2, $task['recurrence_factor']); - $this->assertEquals(strtotime('+2 days'), $task['date_due']); + $this->assertEquals(strtotime('+2 days'), $task['date_due'], '', 2); } } |