#!/usr/bin/env php gen(10); zdTable('project')->config('execution')->gen(5); zdTable('user')->gen(1); su('admin'); /** title=测试 holidayModel->updateProgramPlanDuration(); cid=1 pid=1 */ $holidayIdList = array(10, 5, 1); $projectIdList = array(11, 61, 101); $updateDuration = array(true, false); $holiday = new holidayTest(); r($holiday->updateProgramPlanDurationTest($projectIdList[0], $holidayIdList[0], $updateDuration[0])) && p() && e('57'); //测试插入id为 10 的节假日时迭代 11 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[1], $holidayIdList[0], $updateDuration[1])) && p() && e('67'); //测试插入id为 10 的节假日时迭代 60 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[2], $holidayIdList[0], $updateDuration[1])) && p() && e('37'); //测试插入id为 10 的节假日时迭代 101 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[0], $holidayIdList[1], $updateDuration[0])) && p() && e('57'); //测试插入id为 5 的节假日时迭代 11 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[1], $holidayIdList[1], $updateDuration[1])) && p() && e('67'); //测试插入id为 5 的节假日时迭代 60 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[2], $holidayIdList[1], $updateDuration[1])) && p() && e('37'); //测试插入id为 5 的节假日时迭代 101 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[0], $holidayIdList[2], $updateDuration[0])) && p() && e('57'); //测试插入id为 5 的节假日时迭代 11 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[1], $holidayIdList[2], $updateDuration[1])) && p() && e('67'); //测试插入id为 5 的节假日时迭代 60 项目的planDuration r($holiday->updateProgramPlanDurationTest($projectIdList[2], $holidayIdList[2], $updateDuration[1])) && p() && e('37'); //测试插入id为 5 的节假日时迭代 101 项目的planDuration