#!/usr/bin/env php hasGapanalysisData(); timeout=0 cid=15915 - 测试开源版中无培训计划数据 @0 - 测试ipd版中无培训计划数据 @0 - 测试旗舰版中无培训计划数据 @0 - 测试开源版中有培训计划数据 @0 - 测试ipd版中有培训计划数据 @5 - 测试旗舰版中有培训计划数据 @5 */ include dirname(__FILE__, 5) . '/test/lib/init.php'; include dirname(__FILE__, 2) . '/lib/model.class.php'; $projectTable = zenData('project'); $projectTable->id->range('1-5'); $projectTable->model->range('scrum'); $projectTable->gen(5); zenData('gapanalysis')->gen(0); zenData('user')->gen(5); su('admin'); $editionList = array('open', 'ipd', 'max'); $customTester = new customModelTest(); r($customTester->hasGapanalysisDataTest($editionList[0])) && p() && e('0'); // 测试开源版中无培训计划数据 r($customTester->hasGapanalysisDataTest($editionList[1])) && p() && e('0'); // 测试ipd版中无培训计划数据 r($customTester->hasGapanalysisDataTest($editionList[2])) && p() && e('0'); // 测试旗舰版中无培训计划数据 $gapanalysisTable = zenData('gapanalysis'); $gapanalysisTable->deleted->range('0'); $gapanalysisTable->project->range('1-5'); $gapanalysisTable->gen(5); r($customTester->hasGapanalysisDataTest($editionList[0])) && p() && e('0'); // 测试开源版中有培训计划数据 r($customTester->hasGapanalysisDataTest($editionList[1])) && p() && e('5'); // 测试ipd版中有培训计划数据 r($customTester->hasGapanalysisDataTest($editionList[2])) && p() && e('5'); // 测试旗舰版中有培训计划数据