#!/usr/bin/env php getDocTemplateList(); timeout=0 cid=16085 - 获取产品范围下的所有模板 - 第0条的lib属性 @1 - 第0条的title属性 @产品模板5 - 第0条的templateType属性 @custom1 - 获取产品范围下的草稿模板 - 第1条的lib属性 @1 - 第1条的title属性 @产品模板4 - 第1条的templateType属性 @custom1 - 获取产品范围下的已发布模板 - 第0条的lib属性 @1 - 第0条的title属性 @产品模板2 - 第0条的templateType属性 @QAP - 获取产品范围下的所有模板,按照title降序 - 第0条的lib属性 @1 - 第0条的title属性 @产品模板1 - 第0条的templateType属性 @PP - 获取项目范围下的所有模板 - 第0条的lib属性 @2 - 第0条的title属性 @项目模板10 - 第0条的templateType属性 @custom2 - 获取项目范围下的草稿模板 - 第1条的lib属性 @2 - 第1条的title属性 @项目模板9 - 第1条的templateType属性 @SRS - 获取项目范围下的已发布模板 - 第0条的lib属性 @2 - 第0条的title属性 @项目模板7 - 第0条的templateType属性 @ERS - 获取项目范围下的所有模板,按照title降序 - 第0条的lib属性 @2 - 第0条的title属性 @项目模板10 - 第0条的templateType属性 @custom2 - 获取执行范围下的所有模板 - 第0条的lib属性 @3 - 第0条的title属性 @执行模板15 - 第0条的templateType属性 @custom3 - 获取执行范围下的草稿模板 - 第1条的lib属性 @3 - 第1条的title属性 @执行模板14 - 第1条的templateType属性 @custom3 - 获取执行范围下的已发布模板 - 第0条的lib属性 @3 - 第0条的title属性 @执行模板12 - 第0条的templateType属性 @DDS - 获取执行范围下的所有模板,按照title降序 - 第0条的lib属性 @3 - 第0条的title属性 @执行模板11 - 第0条的templateType属性 @HLDS - 获取个人范围下的所有模板 - 第0条的lib属性 @4 - 第0条的title属性 @个人模板20 - 第0条的templateType属性 @custom4 - 获取个人范围下的草稿模板 - 第1条的lib属性 @4 - 第1条的title属性 @个人模板19 - 第1条的templateType属性 @custom4 - 获取个人范围下的已发布模板 - 第0条的lib属性 @4 - 第0条的title属性 @个人模板17 - 第0条的templateType属性 @Code - 获取个人范围下的所有模板,按照title降序 - 第0条的lib属性 @4 - 第0条的title属性 @个人模板16 - 第0条的templateType属性 @ADS */ include dirname(__FILE__, 5) . '/test/lib/init.php'; include dirname(__FILE__, 2) . '/lib/model.class.php'; zenData('doc')->loadYaml('template')->gen(20); zenData('module')->loadYaml('templatemodule')->gen(20); zenData('user')->gen(5); su('admin'); $libs = array(1, 2, 3, 4); $types = array('all', 'draft', 'released'); $orderBy = array('id_desc', 'title_asc'); $docTester = new docModelTest(); r($docTester->getDocTemplateListTest($libs[0], $types[0], $orderBy[0])) && p('0:lib,title,templateType') && e('1,产品模板5,custom1'); // 获取产品范围下的所有模板 r($docTester->getDocTemplateListTest($libs[0], $types[1], $orderBy[0])) && p('1:lib,title,templateType') && e('1,产品模板4,custom1'); // 获取产品范围下的草稿模板 r($docTester->getDocTemplateListTest($libs[0], $types[2], $orderBy[0])) && p('0:lib,title,templateType') && e('1,产品模板2,QAP'); // 获取产品范围下的已发布模板 r($docTester->getDocTemplateListTest($libs[0], $types[0], $orderBy[1])) && p('0:lib,title,templateType') && e('1,产品模板1,PP'); // 获取产品范围下的所有模板,按照title降序 r($docTester->getDocTemplateListTest($libs[1], $types[0], $orderBy[0])) && p('0:lib,title,templateType') && e('2,项目模板10,custom2'); // 获取项目范围下的所有模板 r($docTester->getDocTemplateListTest($libs[1], $types[1], $orderBy[0])) && p('1:lib,title,templateType') && e('2,项目模板9,SRS'); // 获取项目范围下的草稿模板 r($docTester->getDocTemplateListTest($libs[1], $types[2], $orderBy[0])) && p('0:lib,title,templateType') && e('2,项目模板7,ERS'); // 获取项目范围下的已发布模板 r($docTester->getDocTemplateListTest($libs[1], $types[0], $orderBy[1])) && p('0:lib,title,templateType') && e('2,项目模板10,custom2'); // 获取项目范围下的所有模板,按照title降序 r($docTester->getDocTemplateListTest($libs[2], $types[0], $orderBy[0])) && p('0:lib,title,templateType') && e('3,执行模板15,custom3'); // 获取执行范围下的所有模板 r($docTester->getDocTemplateListTest($libs[2], $types[1], $orderBy[0])) && p('1:lib,title,templateType') && e('3,执行模板14,custom3'); // 获取执行范围下的草稿模板 r($docTester->getDocTemplateListTest($libs[2], $types[2], $orderBy[0])) && p('0:lib,title,templateType') && e('3,执行模板12,DDS'); // 获取执行范围下的已发布模板 r($docTester->getDocTemplateListTest($libs[2], $types[0], $orderBy[1])) && p('0:lib,title,templateType') && e('3,执行模板11,HLDS'); // 获取执行范围下的所有模板,按照title降序 r($docTester->getDocTemplateListTest($libs[3], $types[0], $orderBy[0])) && p('0:lib,title,templateType') && e('4,个人模板20,custom4'); // 获取个人范围下的所有模板 r($docTester->getDocTemplateListTest($libs[3], $types[1], $orderBy[0])) && p('1:lib,title,templateType') && e('4,个人模板19,custom4'); // 获取个人范围下的草稿模板 r($docTester->getDocTemplateListTest($libs[3], $types[2], $orderBy[0])) && p('0:lib,title,templateType') && e('4,个人模板17,Code'); // 获取个人范围下的已发布模板 r($docTester->getDocTemplateListTest($libs[3], $types[0], $orderBy[1])) && p('0:lib,title,templateType') && e('4,个人模板16,ADS'); // 获取个人范围下的所有模板,按照title降序