From 4448b9238a5e271973b025cfda63cc9fe0fe5d92 Mon Sep 17 00:00:00 2001 From: liuchenglong Date: Wed, 10 May 2023 03:08:51 +0000 Subject: [PATCH] - Remove todo test case remark. --- module/todo/test/model/assignto.php | 30 ------------------- module/todo/test/model/batchfinish.php | 8 ----- module/todo/test/model/delete.php | 8 ----- module/todo/test/model/finish.php | 8 ----- module/todo/test/model/getcount.php | 12 -------- module/todo/test/model/gettodoprojects.php | 2 -- module/todo/test/tao/fetch.php | 8 ----- module/todo/test/tao/getcountbyaccount.php | 10 ------- module/todo/test/tao/getprojectlist.php | 2 -- .../todo/test/tao/gettodocountbyaccount.php | 10 +------ module/todo/test/todo.class.php | 1 - 11 files changed, 1 insertion(+), 98 deletions(-) diff --git a/module/todo/test/model/assignto.php b/module/todo/test/model/assignto.php index f78e4a4627..b426ab0dad 100755 --- a/module/todo/test/model/assignto.php +++ b/module/todo/test/model/assignto.php @@ -15,36 +15,6 @@ title=测试 todoModel->assignTo(); timeout=0 cid=1 -- 指派todo 1给test1 选择待定 - - 属性assignedTo @test1 - - 属性date @20300101 - - 属性begin @1000 - - 属性end @1400 - -- 指派todo 2给test1 暂时不设定时间 - - 属性assignedTo @test1 - - 属性begin @2400 - - 属性end @2400 - -- 指派todo 3给test1 - - 属性assignedTo @test1 - - 属性begin @1002 - - 属性end @1402 - -- 指派todo 4给admin future=on 验证 date默认值 - - 属性assignedTo @admin - - 属性date @20300101 - - 属性begin @1200 - - 属性end @1502 - -- 指派todo 5给admin future=on lblDisableDate=on 验证date,begin,end默认值 - - 属性assignedTo @admin - - 属性date @20300101 - - 属性begin @2400 - - 属性end @2400 - - - */ initData(); diff --git a/module/todo/test/model/batchfinish.php b/module/todo/test/model/batchfinish.php index 6dc9a1d5d4..79626b0bad 100755 --- a/module/todo/test/model/batchfinish.php +++ b/module/todo/test/model/batchfinish.php @@ -15,14 +15,6 @@ title=测试批量完成待办 todoModel->batchFinish(); timeout=0 cid=1 -- 批量完成todo验证状态wait->done属性status @done - -- 批量完成todo验证状态donging->done属性status @done - -- 批量完成todo验证状态done属性status @done - - - */ initData(); diff --git a/module/todo/test/model/delete.php b/module/todo/test/model/delete.php index 5dd44a4b8c..a65366e90d 100755 --- a/module/todo/test/model/delete.php +++ b/module/todo/test/model/delete.php @@ -15,14 +15,6 @@ title=测试删除todo todoModel->delete(); timeout=0 cid=1 -- 删除指定id的待办,取消确认 - - 属性id @8 - - 属性deleted @0 - -- 验证删除id不存在的todo信息属性deleted @1 - - - */ initData(); diff --git a/module/todo/test/model/finish.php b/module/todo/test/model/finish.php index 86a6e2fb26..c74952f739 100755 --- a/module/todo/test/model/finish.php +++ b/module/todo/test/model/finish.php @@ -15,14 +15,6 @@ title=测试完成待办 todoModel->finish(); timeout=0 cid=1 -- 结束一个状态为wait的todo属性status @done - -- 结束一个状态为doing的todo属性status @done - -- 结束一个状态为done的todo属性status @done - - - */ initData(); diff --git a/module/todo/test/model/getcount.php b/module/todo/test/model/getcount.php index 64b87548d3..8dc3c76e97 100755 --- a/module/todo/test/model/getcount.php +++ b/module/todo/test/model/getcount.php @@ -14,18 +14,6 @@ title=测试 todoModel->getCount(); timeout=0 cid=1 -- 获取用户admin的所有待办个数 @4 - -- 获取用户user1的所有待办个数 @3 - -- 获取用户user2的所有待办个数 @3 - -- 获取不存在的用户所有待办个数 @0 - -- 获取用户admin的vision=>rand所有待办个数 @4 - - - */ initData(); diff --git a/module/todo/test/model/gettodoprojects.php b/module/todo/test/model/gettodoprojects.php index 018f49520e..c4da5a12d2 100755 --- a/module/todo/test/model/gettodoprojects.php +++ b/module/todo/test/model/gettodoprojects.php @@ -17,8 +17,6 @@ title=测试 todoModel->getTodoProjects(); timeout=0 cid=1 -- 验证task获得的键值对的个数 @4 - */ initData(); diff --git a/module/todo/test/tao/fetch.php b/module/todo/test/tao/fetch.php index b80945397e..484a3d5742 100755 --- a/module/todo/test/tao/fetch.php +++ b/module/todo/test/tao/fetch.php @@ -15,14 +15,6 @@ title=测试完成待办 todoModel->finish(); timeout=0 cid=1 -- 查询id=1的todo并且验证状态 - - 属性id @1 - - 属性status @wait - -- 查询id=9的todo并且验证状态 - - 属性id @9 - - 属性status @done - */ initData(); diff --git a/module/todo/test/tao/getcountbyaccount.php b/module/todo/test/tao/getcountbyaccount.php index 19250cf19a..049b01f06a 100755 --- a/module/todo/test/tao/getcountbyaccount.php +++ b/module/todo/test/tao/getcountbyaccount.php @@ -14,16 +14,6 @@ title=测试 todoModel->getCount(); timeout=0 cid=1 -- 获取用户admin的所有待办个数 @4 - -- 获取用户user1的所有待办个数 @3 - -- 获取用户user2的所有待办个数 @3 - -- 获取不存在的用户所有待办个数 @0 - -- 获取用户admin的vision=>rand所有待办个数 @4 - */ initData(); diff --git a/module/todo/test/tao/getprojectlist.php b/module/todo/test/tao/getprojectlist.php index 2ffb85365e..b42c86ed61 100755 --- a/module/todo/test/tao/getprojectlist.php +++ b/module/todo/test/tao/getprojectlist.php @@ -17,8 +17,6 @@ title=测试 todoModel->getCount(); timeout=0 cid=1 -- 验证task获得的键值对的个数 @4 - */ initData(); diff --git a/module/todo/test/tao/gettodocountbyaccount.php b/module/todo/test/tao/gettodocountbyaccount.php index 2fda372a7e..ff8bbeee0f 100755 --- a/module/todo/test/tao/gettodocountbyaccount.php +++ b/module/todo/test/tao/gettodocountbyaccount.php @@ -9,14 +9,6 @@ title=测试 todoTao::getTodoCountByAccount(); timeout=0 cid=1 -- 判断用户为user1的待办事项数量为1 @1 - -- 判断用户为admin的待办事项数量为1 @1 - -- 判断用户为user2的待办事项数量为1 @1 - -- 判断用户为user3的待办事项数量为0 @0 - */ function initData () @@ -34,4 +26,4 @@ $account = array('user1', 'admin', 'user2', 'user3'); r($tester->todo->getTodoCountByAccount($account[0])) && p() && e('1'); // 判断用户为user1的待办事项数量为1 r($tester->todo->getTodoCountByAccount($account[1])) && p() && e('1'); // 判断用户为admin的待办事项数量为1 r($tester->todo->getTodoCountByAccount($account[2])) && p() && e('1'); // 判断用户为user2的待办事项数量为1 -r($tester->todo->getTodoCountByAccount($account[3])) && p() && e('0'); // 判断用户为user3的待办事项数量为0 \ No newline at end of file +r($tester->todo->getTodoCountByAccount($account[3])) && p() && e('0'); // 判断用户为user3的待办事项数量为0 diff --git a/module/todo/test/todo.class.php b/module/todo/test/todo.class.php index 741f6ff371..4b12d896a4 100755 --- a/module/todo/test/todo.class.php +++ b/module/todo/test/todo.class.php @@ -301,7 +301,6 @@ class todoTest { $todo = new stdclass(); $todo->assignedDate = helper::now(); - $todo->date = ''; $todo->begin = 0; $todo->end = 0;