From c1bfb2d13ca15ea6062c7d3442e1cb9f5c21b3c5 Mon Sep 17 00:00:00 2001 From: jukui Date: Tue, 9 May 2023 18:22:49 +0800 Subject: [PATCH] * Modify test case remark for todo model. --- module/todo/test/model/getbyexportlist.php | 10 +++++----- module/todo/test/tao/getlistby.php | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/module/todo/test/model/getbyexportlist.php b/module/todo/test/model/getbyexportlist.php index 3fbd06cc81..648f3f505f 100644 --- a/module/todo/test/model/getbyexportlist.php +++ b/module/todo/test/model/getbyexportlist.php @@ -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的待办名称和状态 diff --git a/module/todo/test/tao/getlistby.php b/module/todo/test/tao/getlistby.php index ae7922e455..2476ed63d7 100644 --- a/module/todo/test/tao/getlistby.php +++ b/module/todo/test/tao/getlistby.php @@ -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'); //获取待办列表第一条的名称和状态