Commit e31fd693 authored by Doris Tam's avatar Doris Tam

Bug 1810990: blocktype data: plans - documentation for create_task()

Change-Id: I7d71dbb38e343ce7bba940e04d87c31649ced3d7
parent bee2dabb
......@@ -1802,7 +1802,7 @@ EOD;
* | owner | ownertype | title | description | tags |
* | userA | user | Plan One | This is my new plan | cats,dogs |
* | Group B | group | Group Plan | This is my group plan | unicorn |
**/
*/
public function create_plan($record) {
$owner = null;
$this->set_owner($record, $owner);
......@@ -1819,6 +1819,19 @@ EOD;
$artefact->commit();
}
/**
* A fixture to set up tasks in bulk
*
* Example:
* And the following "tasks" exist:
*| owner | ownertype | plan | title | description | completiondate | completed | tags |
*| UserA | user | Plan One | Task One| Task One Description | 12/12/19 | no | cats,dogs |
*| UserA | user | Plan One | Task Two| Task Two Description | 12/01/19 | yes | cats,dogs |
*| UserA | user | Plan Two | Task 2a | Task 2a Description | 12/10/19 | yes | cats,dogs |
*| UserA | user | Plan Two | Task 2b | Task 2b Description | 11/05/19 | yes | cats,dogs |
*
* @param array $record row of fields from the behat table for creating tasks in bulk
*/
public function create_task($record) {
$owner = null;
$this->set_owner($record, $owner);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment