+ Add unit test for project getProgramTree.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
zdTable('project')->gen(20);
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 projectModel::getInfoList;
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$tester->loadModel('project');
|
||||
|
||||
$programs = $tester->project->getProgramTree();
|
||||
r($programs) && p('0:name') && e('项目集1'); // 查询第一个项目集名称
|
||||
r(count($programs)) && p() && e('4'); // 查询项目集数量
|
||||
Reference in New Issue
Block a user