summaryrefslogtreecommitdiff
path: root/tests/units/SubtaskTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-20 14:49:31 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-20 14:49:31 +0200
commit41e796c52aa693d13636b54efe15705eaec27f3f (patch)
treebc670e457e98c1d8a9ac8e2b82bf8e2c424af328 /tests/units/SubtaskTest.php
parent00cdc609d113fedf977da1d55136dc4d699fb308 (diff)
Models refactoring/improvements
Diffstat (limited to 'tests/units/SubtaskTest.php')
-rw-r--r--tests/units/SubtaskTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/SubtaskTest.php b/tests/units/SubtaskTest.php
index a74ee60a..f272db1f 100644
--- a/tests/units/SubtaskTest.php
+++ b/tests/units/SubtaskTest.php
@@ -24,8 +24,8 @@ class SubTaskTest extends Base
$this->assertEquals(2, $t->create(array('title' => 'test 2', 'project_id' => 1, 'column_id' => 1, 'owner_id' => 0)));
// We create many subtasks for the first task
- $this->assertEquals(1, $s->create(array('title' => 'subtask #1', 'task_id' => 1, 'time_estimated' => 5, 'time_spent' => 3, 'status' => 1)));
- $this->assertEquals(2, $s->create(array('title' => 'subtask #2', 'task_id' => 1, 'time_estimated' => 0, 'time_spent' => 0, 'status' => 2, 'user_id' => 1)));
+ $this->assertEquals(1, $s->create(array('title' => 'subtask #1', 'task_id' => 1, 'time_estimated' => 5, 'time_spent' => 3, 'status' => 1, 'another_subtask' => 'on')));
+ $this->assertEquals(2, $s->create(array('title' => 'subtask #2', 'task_id' => 1, 'time_estimated' => '', 'time_spent' => '', 'status' => 2, 'user_id' => 1)));
// We duplicate our subtasks
$this->assertTrue($s->duplicate(1, 2));