* [unittest] modify unittest.
This commit is contained in:
@@ -20,8 +20,19 @@ zenData('product')->gen(10);
|
||||
/**
|
||||
|
||||
title=测试 messageModel->getToList();
|
||||
timeout=0
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
- 测试获取 todo 1 action 0 的 toList @admin
|
||||
- 测试获取 testtask 1 action 0 的 toList @user3
|
||||
- 测试获取 mr 1 action 0 的 toList @admin,admin
|
||||
|
||||
- 测试获取 release 1 action 0 的 toList @admin,,po1,dev1
|
||||
|
||||
- 测试获取 task 1 action 0 的 toList @dev1
|
||||
- 测试获取 task 9 action 0 的 toList @0
|
||||
- 测试获取 story 1 action 0 的 toList @admin
|
||||
- 测试获取 story 1 action 0 的 toList @admin
|
||||
|
||||
*/
|
||||
|
||||
@@ -31,11 +42,11 @@ $objectType = array('todo', 'testtask', 'mr', 'release', 'task', 'story');
|
||||
$objectID = array(1, 9);
|
||||
$actionID = array(0, 2);
|
||||
|
||||
r($message->getToListTest($objectType[0], $objectID[0], $actionID[0])) && p() && e('admin'); // 测试获取 todo 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[1], $objectID[0], $actionID[0])) && p() && e('user3'); // 测试获取 testtask 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[2], $objectID[0], $actionID[0])) && p() && e('admin,admin'); // 测试获取 mr 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[3], $objectID[0], $actionID[0])) && p() && e('po1'); // 测试获取 release 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[4], $objectID[0], $actionID[0])) && p() && e('dev1'); // 测试获取 task 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[4], $objectID[1], $actionID[0])) && p() && e('user1,user2'); // 测试获取 task 9 action 0 的 toList
|
||||
r($message->getToListTest($objectType[5], $objectID[0], $actionID[0])) && p() && e('admin'); // 测试获取 story 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[5], $objectID[0], $actionID[1])) && p() && e('admin'); // 测试获取 story 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[0], $objectID[0], $actionID[0])) && p() && e('admin'); // 测试获取 todo 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[1], $objectID[0], $actionID[0])) && p() && e('user3'); // 测试获取 testtask 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[2], $objectID[0], $actionID[0])) && p() && e('admin,admin'); // 测试获取 mr 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[3], $objectID[0], $actionID[0])) && p() && e('admin,,po1,dev1'); // 测试获取 release 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[4], $objectID[0], $actionID[0])) && p() && e('dev1'); // 测试获取 task 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[4], $objectID[1], $actionID[0])) && p() && e('0'); // 测试获取 task 9 action 0 的 toList
|
||||
r($message->getToListTest($objectType[5], $objectID[0], $actionID[0])) && p() && e('admin'); // 测试获取 story 1 action 0 的 toList
|
||||
r($message->getToListTest($objectType[5], $objectID[0], $actionID[1])) && p() && e('admin'); // 测试获取 story 1 action 0 的 toList
|
||||
Reference in New Issue
Block a user