update unittest

This commit is contained in:
denghongtao
2022-03-16 09:42:37 +08:00
parent 7cbde4dcfe
commit d18ddc8ebb
27 changed files with 898 additions and 320 deletions
+2 -4
View File
@@ -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