*autotest case.
This commit is contained in:
@@ -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的项目集的进度
|
||||
|
||||
Reference in New Issue
Block a user