* Add test case.

This commit is contained in:
caoyanyi
2023-01-06 10:05:48 +08:00
parent 0338be7f3d
commit 0875144941
3 changed files with 78 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
/**
title=测试 programModel::getStakeholdersByPrograms();
cid=1
pid=1
权限不足跳转 >> html
*/
global $tester;
$tester->loadModel('program');
ob_start();
$tester->program->accessDenied();
$result = ob_get_clean();
r(substr($result, 1, 4)) && p() && e('html'); // 权限不足跳转