* program: Implements function to get all root programs.

This commit is contained in:
chentao
2023-05-18 17:41:20 +08:00
parent e8d4a77f58
commit 427930e41d
3 changed files with 100 additions and 0 deletions
@@ -0,0 +1,22 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/program.class.php';
function initData()
{
zdTable('project')->config('program')->gen(40);
}
initData();
/**
title=programTao->getRootProgramList();
cid=2
*/
$tester = new programTest('admin');
$programList = $tester->program->getRootProgramList();
r(count($programList)) && p('') && e('10');