#!/usr/bin/env php config('project')->gen(13); zdTable('task')->config('task')->gen(13); } /** title=测试 programplanModel->computeProgress(); timeout=0 cid=1 */ initData(); $programplan = new programplanTest(); r($programplan->computeProgressTest('1', 'edit', false)) && p() && e('success'); // 测试参数=项目id直接continue r($programplan->computeProgressTest('2', 'edit', true)) && p() && e('success'); // 测试阶段status=suspended子阶段status=wait r($programplan->getByIdTest(2)) && p('status') && e('wait'); // 测试阶段status:suspended=>wait r($programplan->computeProgressTest('5', 'edit', true)) && p() && e('success'); // 测试阶段status=suspended子阶段status=closed r($programplan->getByIdTest(5)) && p('status') && e('closed'); // 测试阶段status:suspended=>closed r($programplan->computeProgressTest('8', 'edit', true)) && p() && e('success'); // 测试阶段status=doing子阶段status=suspended r($programplan->getByIdTest(8)) && p('status') && e('suspended'); // 测试阶段status:doing=>suspended r($programplan->computeProgressTest('11', 'edit', true)) && p() && e('success'); // 测试阶段status更新为doing r($programplan->getByIdTest(11)) && p('status') && e('doing'); // 测试阶段状态更新为donging