+ [misc] Add unit tests for programZen::getProgramList4Kanban() method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
liugang
2025-09-18 13:11:43 +08:00
co-authored by Claude
parent 9c2698f636
commit 92392aff0d
3 changed files with 121 additions and 0 deletions
@@ -838,4 +838,21 @@ class programTest
return count($programs);
}
/**
* Test getProgramList4Kanban method.
*
* @param string $browseType
* @access public
* @return array
*/
public function getProgramList4KanbanTest(string $browseType = 'my'): array
{
global $tester;
$programZen = $tester->loadZen('program');
$result = $programZen->getProgramList4Kanban($browseType);
if(dao::isError()) return dao::getError();
return $result;
}
}