From a484a5bedcd08c3f4821ac66a99af929ba6c4e32 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Sat, 12 Oct 2024 17:33:03 +0800 Subject: [PATCH] + [task#130251,doing,0.5h] add unit test of taskModel::syncStoryToChildren. --- .../task/test/model/syncstorytochildren.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 module/task/test/model/syncstorytochildren.php diff --git a/module/task/test/model/syncstorytochildren.php b/module/task/test/model/syncstorytochildren.php new file mode 100644 index 0000000000..b9cced6477 --- /dev/null +++ b/module/task/test/model/syncstorytochildren.php @@ -0,0 +1,20 @@ +#!/usr/bin/env php +syncStoryToChildren(); +cid=0 + +*/ +include dirname(__FILE__, 5) . '/test/lib/init.php'; +include dirname(__FILE__, 2) . '/lib/task.unittest.class.php'; + +zenData('user')->gen(5); +su('admin'); + +zenData('task')->loadYaml('task')->gen(20); +zenData('story')->gen(50); + +$task1 = new stdclass(); +$task1->id = 1;