diff --git a/module/tutorial/test/lib/tutorial.unittest.class.php b/module/tutorial/test/lib/tutorial.unittest.class.php index 97b37addca..b8f86ca017 100644 --- a/module/tutorial/test/lib/tutorial.unittest.class.php +++ b/module/tutorial/test/lib/tutorial.unittest.class.php @@ -811,4 +811,19 @@ class tutorialTest return $result; } + + /** + * 测试获取新手模式看板泳道组。 + * Test get lane group. + * + * @access public + * @return array + */ + public function getLaneGroupTest(): array + { + $result = $this->objectModel->getLaneGroup(); + if(dao::isError()) return dao::getError(); + + return $result; + } } diff --git a/module/tutorial/test/model/getlanegroup.php b/module/tutorial/test/model/getlanegroup.php new file mode 100755 index 0000000000..2bc4dfc132 --- /dev/null +++ b/module/tutorial/test/model/getlanegroup.php @@ -0,0 +1,33 @@ +#!/usr/bin/env php +getLaneGroupTest())) && p() && e('3'); // 步骤1:验证返回结果包含3个泳道组 +r($tutorialTest->getLaneGroupTest()[1][0]['type'] == 'story') && p() && e('1'); // 步骤2:验证story类型泳道组 +r($tutorialTest->getLaneGroupTest()[2][0]['type'] == 'task') && p() && e('1'); // 步骤3:验证task类型泳道组 +r($tutorialTest->getLaneGroupTest()[3][0]['type'] == 'bug') && p() && e('1'); // 步骤4:验证bug类型泳道组 +r($tutorialTest->getLaneGroupTest()[1][0]['execution'] == 3 && $tutorialTest->getLaneGroupTest()[1][0]['region'] == 1) && p() && e('1'); // 步骤5:验证execution和region属性 \ No newline at end of file