summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Model/NotificationModelTest.php4
-rw-r--r--tests/units/Model/SubtaskTimeTrackingModelTest.php6
-rw-r--r--tests/units/Notification/MailNotificationTest.php2
3 files changed, 6 insertions, 6 deletions
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);