diff --git a/module/program/test/model/createstakeholder.php b/module/program/test/model/createstakeholder.php deleted file mode 100755 index fe2396484e..0000000000 --- a/module/program/test/model/createstakeholder.php +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env php -id->range('1'); -$program->name->range('父项目集1'); -$program->type->range('program'); -$program->path->range('1')->prefix(',')->postfix(','); -$program->begin->range('20220112 000000:0')->type('timestamp')->format('YY/MM/DD'); -$program->end->range('20220212 000000:0')->type('timestamp')->format('YY/MM/DD'); -$program->gen(1); - -/** - -title=测试 programModel::createStakeholder(); -cid=1 -pid=1 - -创建id=1的项目集的干系人并查看数量。 >> 2 -创建id=1的项目集的干系人dev1,dev2并查看Account。 >> dev1;dev2 - -*/ - -$programTester = new programTest(); - -$accounts = array('dev1', 'dev2'); -$result = $programTester->createStakeholderTest(1, $accounts); - -r(count($result)) && p('') && e('2'); // 创建id=1的项目集的干系人并查看数量。 -r($result) && p('0:account;1:account') && e('dev1;dev2'); // 创建id=1的项目集的干系人dev1,dev2并查看Account。 diff --git a/module/program/test/model/isclickable.php b/module/program/test/model/isclickable.php index e154f68043..7868b0c4cd 100755 --- a/module/program/test/model/isclickable.php +++ b/module/program/test/model/isclickable.php @@ -17,16 +17,9 @@ $program->gen(2); /** -title=测试 programModel::createStakeholder(); +title=测试 programModel::isClickable(); +timeout=0 cid=1 -pid=1 - -传入项目集1,动作为closed,判断是否可点击 >> 1 -传入项目集1,动作为activate,判断是否可点击 >> 0 -传入项目集1,动作为suspend,判断是否可点击 >> 1 -传入项目集2,动作为closed,判断是否可点击 >> 1 -传入项目集2,动作为activate,判断是否可点击 >> 0 -传入项目集2,动作为activate,判断是否可点击 >> 1 */ diff --git a/module/program/test/program.class.php b/module/program/test/program.class.php index 416d838182..aee5a28c95 100644 --- a/module/program/test/program.class.php +++ b/module/program/test/program.class.php @@ -117,22 +117,6 @@ class programTest return $this->program->getParentPM($programIdList); } - /** - * Create stakeholder. - * - * @param int $programID - * @param array $accounts - * @access public - * @return void - */ - public function createStakeholderTest($programID, $accounts = array()) - { - $_POST['accounts'] = $accounts; - $stakeHolder = $this->program->createStakeholder($programID); - - return $this->program->getStakeholdersByPrograms((int)$programID); - } - /** * Test updateChildUserView method. *