* Autotest program case.

This commit is contained in:
zhengrunyu
2022-01-18 10:22:42 +08:00
parent 172b4ade25
commit 8ebdc2a3b6
26 changed files with 702 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
/**
title=测试 programModel::setTreePath();
cid=1
pid=1
*/
$program = $tester->loadModel('program');
r($program->setTreePath(11)) && p() && e('1'); // 设置id=11的项目集的path
r($program->getById(11)) && p('path') && e('11,'); // 查找id=11的项目集的path