Add delta to unit test
This commit is contained in:
@@ -42,8 +42,8 @@ class TaskStatusTest extends Base
|
|||||||
$task = $tf->getById(1);
|
$task = $tf->getById(1);
|
||||||
$this->assertNotEmpty($task);
|
$this->assertNotEmpty($task);
|
||||||
$this->assertEquals(Task::STATUS_CLOSED, $task['is_active']);
|
$this->assertEquals(Task::STATUS_CLOSED, $task['is_active']);
|
||||||
$this->assertEquals(time(), $task['date_completed']);
|
$this->assertEquals(time(), $task['date_completed'], 'Bad completion timestamp', 1);
|
||||||
$this->assertEquals(time(), $task['date_modification']);
|
$this->assertEquals(time(), $task['date_modification'], 'Bad modification timestamp', 1);
|
||||||
|
|
||||||
// We open the task again
|
// We open the task again
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user