- Remove todo test case remark.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -15,14 +15,6 @@ title=测试删除todo todoModel->delete();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 删除指定id的待办,取消确认
|
||||
- 属性id @8
|
||||
- 属性deleted @0
|
||||
|
||||
- 验证删除id不存在的todo信息属性deleted @1
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
initData();
|
||||
|
||||
@@ -15,14 +15,6 @@ title=测试完成待办 todoModel->finish();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 结束一个状态为wait的todo属性status @done
|
||||
|
||||
- 结束一个状态为doing的todo属性status @done
|
||||
|
||||
- 结束一个状态为done的todo属性status @done
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
initData();
|
||||
|
||||
@@ -14,18 +14,6 @@ title=测试 todoModel->getCount();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 获取用户admin的所有待办个数 @4
|
||||
|
||||
- 获取用户user1的所有待办个数 @3
|
||||
|
||||
- 获取用户user2的所有待办个数 @3
|
||||
|
||||
- 获取不存在的用户所有待办个数 @0
|
||||
|
||||
- 获取用户admin的vision=>rand所有待办个数 @4
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
initData();
|
||||
|
||||
@@ -17,8 +17,6 @@ title=测试 todoModel->getTodoProjects();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 验证task获得的键值对的个数 @4
|
||||
|
||||
*/
|
||||
|
||||
initData();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -14,16 +14,6 @@ title=测试 todoModel->getCount();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 获取用户admin的所有待办个数 @4
|
||||
|
||||
- 获取用户user1的所有待办个数 @3
|
||||
|
||||
- 获取用户user2的所有待办个数 @3
|
||||
|
||||
- 获取不存在的用户所有待办个数 @0
|
||||
|
||||
- 获取用户admin的vision=>rand所有待办个数 @4
|
||||
|
||||
*/
|
||||
|
||||
initData();
|
||||
|
||||
@@ -17,8 +17,6 @@ title=测试 todoModel->getCount();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
- 验证task获得的键值对的个数 @4
|
||||
|
||||
*/
|
||||
|
||||
initData();
|
||||
|
||||
@@ -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
|
||||
r($tester->todo->getTodoCountByAccount($account[3])) && p() && e('0'); // 判断用户为user3的待办事项数量为0
|
||||
|
||||
@@ -301,7 +301,6 @@ class todoTest
|
||||
{
|
||||
$todo = new stdclass();
|
||||
$todo->assignedDate = helper::now();
|
||||
$todo->date = '';
|
||||
$todo->begin = 0;
|
||||
$todo->end = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user