* 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'); //获取id为1的待办名称和状态
|
||||
r(count($testResult)) && p() && e('1'); // 获取待办的数量
|
||||
r($testResult[1]) && p('name,status') && e('待办1,wait'); // 获取id为1的待办name和status
|
||||
|
||||
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的待办名称和状态
|
||||
r(count($testResult2)) && p() && e('2'); // 获取导出待办的数量
|
||||
r($testResult2[4]) && p('name,status') && e('待办4,closed'); // 获取id为1的待办name和status
|
||||
r($testResult2[5]) && p('name,status') && e('待办5,closed'); // 获取id为5的待办name和status
|
||||
|
||||
@@ -29,4 +29,4 @@ $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($result[0]) && p('name,status') && e('待办5,doing'); //获取待办列表第1条的name和status
|
||||
|
||||
Reference in New Issue
Block a user