*autotest case.

This commit is contained in:
zhengrunyu
2022-01-18 15:42:44 +08:00
parent f7682bf7a2
commit aa79ce443c
26 changed files with 459 additions and 202 deletions
+12 -9
View File
@@ -2,13 +2,21 @@
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
/**
title=测试 programModee::getProgressList();
cid=1
pid=1
*/
class Tester
{
public function __construct($user)
{
global $tester;
su('admin');
su($user);
$this->program = $tester->loadModel('program');
}
@@ -25,14 +33,9 @@ class Tester
$t = new Tester('admin');
/**
title=测试 programModee::getProgressList();
cid=1
pid=1
*/
/* Count(). */
r($t->getCount()) && p() && e('100'); // 获取项目和项目集的个数
/* GetProgressList(). */
r($t->getProgressList()) && p('1') && e('0'); // 获取id=1的项目的进度
r($t->getProgressList()) && p('11') && e('0'); // 获取id=11的项目集的进度