summaryrefslogtreecommitdiff
path: root/tests/integration/BaseProcedureTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-26 15:47:02 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-26 15:47:02 -0400
commit82623f1a212a3a79507ede69586c561efa675224 (patch)
treec5b8607005950ff77c9782f4412f66d1b64bdfd7 /tests/integration/BaseProcedureTest.php
parentf62112983635a281108575bb69bb90df6bed68b7 (diff)
Added API calls for subtask time tracking
Diffstat (limited to 'tests/integration/BaseProcedureTest.php')
-rw-r--r--tests/integration/BaseProcedureTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration/BaseProcedureTest.php b/tests/integration/BaseProcedureTest.php
index e3382e82..beb13ff7 100644
--- a/tests/integration/BaseProcedureTest.php
+++ b/tests/integration/BaseProcedureTest.php
@@ -17,6 +17,7 @@ abstract class BaseProcedureTest extends PHPUnit_Framework_TestCase
protected $projectId = 0;
protected $taskTitle = 'My task';
protected $taskId = 0;
+ protected $subtaskId = 0;
protected $groupName1 = 'My Group A';
protected $groupName2 = 'My Group B';
@@ -119,4 +120,14 @@ abstract class BaseProcedureTest extends PHPUnit_Framework_TestCase
$this->taskId = $this->app->createTask(array('title' => $this->taskTitle, 'project_id' => $this->projectId));
$this->assertNotFalse($this->taskId);
}
+
+ public function assertCreateSubtask()
+ {
+ $this->subtaskId = $this->app->createSubtask(array(
+ 'task_id' => $this->taskId,
+ 'title' => 'subtask #1',
+ ));
+
+ $this->assertNotFalse($this->subtaskId);
+ }
}