From c05a6be0ea378d26601ec2b80b4ef319cd271234 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 24 Dec 2024 14:23:17 +0800 Subject: [PATCH] * [task#135239,doing,0.2h] add unit test for confirmStoryChange method. --- module/task/test/model/confirmstorychange.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 module/task/test/model/confirmstorychange.php diff --git a/module/task/test/model/confirmstorychange.php b/module/task/test/model/confirmstorychange.php new file mode 100644 index 0000000000..fd7653a16f --- /dev/null +++ b/module/task/test/model/confirmstorychange.php @@ -0,0 +1,17 @@ +#!/usr/bin/env php +confirmStoryChange(); +cid=0 + +*/ +include dirname(__FILE__, 5) . '/test/lib/init.php'; +include dirname(__FILE__, 2) . '/lib/task.unittest.class.php'; + +zenData('project')->loadYaml('project')->gen(3); +zenData('task')->loadYaml('task')->gen(5); +zenData('taskteam')->loadYaml('taskteam')->gen(6); +zenData('story')->loadYaml('story')->gen(5); +zenData('user')->gen(5); +su('admin');