From 4f325193be4f16a9658258fecd525e71917156a0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 26 Feb 2017 16:06:09 -0500 Subject: Add class SubtaskListFormatter --- tests/units/Model/NotificationModelTest.php | 4 ++-- tests/units/Model/SubtaskTimeTrackingModelTest.php | 6 +++--- tests/units/Notification/MailNotificationTest.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/units') diff --git a/tests/units/Model/NotificationModelTest.php b/tests/units/Model/NotificationModelTest.php index 0bd9db6e..e96e22bf 100644 --- a/tests/units/Model/NotificationModelTest.php +++ b/tests/units/Model/NotificationModelTest.php @@ -35,7 +35,7 @@ class NotificationModelTest extends Base $this->assertEquals(1, $taskLinkModel->create(1, 2, 1)); $task = $taskFinderModel->getDetails(1); - $subtask = $subtaskModel->getById(1, true); + $subtask = $subtaskModel->getByIdWithDetails(1); $comment = $commentModel->getById(1); $file = $commentModel->getById(1); $tasklink = $taskLinkModel->getById(1); @@ -76,7 +76,7 @@ class NotificationModelTest extends Base $this->assertEquals(1, $taskFileModel->create(1, 'test', 'blah', 123)); $task = $taskFinderModel->getDetails(1); - $subtask = $subtaskModel->getById(1, true); + $subtask = $subtaskModel->getByIdWithDetails(1); $comment = $commentModel->getById(1); $file = $commentModel->getById(1); $tasklink = $taskLinkModel->getById(1); diff --git a/tests/units/Model/SubtaskTimeTrackingModelTest.php b/tests/units/Model/SubtaskTimeTrackingModelTest.php index 8b0fe698..120cfc2c 100644 --- a/tests/units/Model/SubtaskTimeTrackingModelTest.php +++ b/tests/units/Model/SubtaskTimeTrackingModelTest.php @@ -85,7 +85,7 @@ class SubtaskTimeTrackingModelTest extends Base $this->assertEquals(0, $subtasks[0]['timer_start_date']); $this->assertFalse($subtasks[0]['is_timer_started']); - $subtask = $subtaskModel->getById(1, true); + $subtask = $subtaskModel->getByIdWithDetails(1); $this->assertNotEmpty($subtask); $this->assertEquals(0, $subtask['timer_start_date']); $this->assertFalse($subtask['is_timer_started']); @@ -98,7 +98,7 @@ class SubtaskTimeTrackingModelTest extends Base $this->assertEquals(time(), $subtasks[0]['timer_start_date'], '', 3); $this->assertTrue($subtasks[0]['is_timer_started']); - $subtask = $subtaskModel->getById(1, true); + $subtask = $subtaskModel->getByIdWithDetails(1); $this->assertNotEmpty($subtask); $this->assertEquals(time(), $subtask['timer_start_date'], '', 3); $this->assertTrue($subtask['is_timer_started']); @@ -110,7 +110,7 @@ class SubtaskTimeTrackingModelTest extends Base $this->assertEquals(0, $subtasks[0]['timer_start_date']); $this->assertFalse($subtasks[0]['is_timer_started']); - $subtask = $subtaskModel->getById(1, true); + $subtask = $subtaskModel->getByIdWithDetails(1); $this->assertNotEmpty($subtask); $this->assertEquals(0, $subtask['timer_start_date']); $this->assertFalse($subtask['is_timer_started']); diff --git a/tests/units/Notification/MailNotificationTest.php b/tests/units/Notification/MailNotificationTest.php index 93eeef0c..04e99c8a 100644 --- a/tests/units/Notification/MailNotificationTest.php +++ b/tests/units/Notification/MailNotificationTest.php @@ -36,7 +36,7 @@ class MailNotificationTest extends Base $this->assertEquals(1, $taskLinkModel->create(1, 2, 1)); $task = $taskFinderModel->getDetails(1); - $subtask = $subtaskModel->getById(1, true); + $subtask = $subtaskModel->getByIdWithDetails(1); $comment = $commentModel->getById(1); $file = $commentModel->getById(1); $tasklink = $taskLinkModel->getById(1); -- cgit v1.2.3