update unittest
This commit is contained in:
@@ -9,8 +9,7 @@ title=测试 programModel::setTreePath();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
查找id=11的项目集的path >> 12,
|
||||
查找不存在的id=1000的项目集的path >> 0
|
||||
查找id=12的项目集的path >> ,2,12,
|
||||
|
||||
*/
|
||||
|
||||
@@ -18,5 +17,4 @@ $program = new Program('admin');
|
||||
|
||||
$findId = array(12, 1000);
|
||||
|
||||
r($program->setTreePath($findId[0])) && p('path') && e('12,'); // 查找id=11的项目集的path
|
||||
#r($program->setTreePath($findId[1])) && p('path') && e('0'); // 查找不存在的id=1000的项目集的path
|
||||
r($program->setTreePath($findId[0])) && p('path') && e(',2,12,'); // 查找id=12的项目集的path
|
||||
Reference in New Issue
Block a user