* Modify test case remark for todo model.
This commit is contained in:
@@ -24,9 +24,9 @@ $testWhere2 = " `deleted` = '0' and `status` IN ('closed') ";
|
||||
$testResult = $todo->getByExportListTest("date_desc", $testWhere, $selectedItem = '');
|
||||
$testResult2 = $todo->getByExportListTest("date_desc", $testWhere2, $selectedItem = '');
|
||||
|
||||
r(count($testResult)) && p() && e('1');
|
||||
r($testResult[1]) && p('name,status') && e('待办1,wait');
|
||||
r(count($testResult)) && p() && e('1'); //获取导出待办的数量
|
||||
r($testResult[1]) && p('name,status') && e('待办1,wait'); //获取id为1的待办名称和状态
|
||||
|
||||
r(count($testResult2)) && p() && e('2');
|
||||
r($testResult2[4]) && p('name,status') && e('待办4,closed');
|
||||
r($testResult2[5]) && p('name,status') && e('待办5,closed');
|
||||
r(count($testResult2)) && p() && e('2'); //获取导出待办的数量
|
||||
r($testResult2[4]) && p('name,status') && e('待办4,closed'); //获取id为1的待办名称和状态
|
||||
r($testResult2[5]) && p('name,status') && e('待办5,closed'); //获取id为5的待办名称和状态
|
||||
|
||||
@@ -18,9 +18,9 @@ global $tester;
|
||||
$tester->loadModel('todo')->todoTao;
|
||||
|
||||
|
||||
$type = 'before';
|
||||
$type = 'before'; // assignedtoother, cycle
|
||||
$account = 'admin';
|
||||
$status = 'all';
|
||||
$status = 'all'; // done,closed,wait,doing
|
||||
$begin = '2021-02-03';
|
||||
$end = '2024-04-04';
|
||||
$limit = 5;
|
||||
@@ -28,5 +28,5 @@ $orderBy = 'date_desc';
|
||||
|
||||
$result = $tester->todo->getListBy($type, $account, $status, $begin, $end, $limit, $orderBy);
|
||||
|
||||
r(count($result)) && p() && e('5');
|
||||
r($result[0]) && p('name,status') && e('待办5,doing');
|
||||
r(count($result)) && p() && e('5'); //获取待办列表数量
|
||||
r($result[0]) && p('name,status') && e('待办5,doing'); //获取待办列表第一条的名称和状态
|
||||
|
||||
Reference in New Issue
Block a user