diff --git a/test/model/user/getcontactlistbyid.php b/test/model/user/getcontactlistbyid.php index 7be42c8963..5aa99f90d7 100755 --- a/test/model/user/getcontactlistbyid.php +++ b/test/model/user/getcontactlistbyid.php @@ -4,14 +4,18 @@ include dirname(dirname(dirname(__FILE__))) . '/lib/init.php'; include dirname(dirname(dirname(__FILE__))) . '/class/user.class.php'; su('admin'); +$userContactList = zdTable('usercontact'); +$userContactList->gen(3); + /** -title=测试 userModel::getContactListByID(); +title=测试 userModel->getContactListByID(); cid=1 pid=1 获取ID为1的联系人列表名称 >> 联系人列表1 -获取ID为60的联系人列表创建者 >> admin +获取ID为2的联系人列表创建者 >> dev2 +获取ID为3的联系人列表所包含的用户 >> test22,test42 获取ID为1000的联系人列表,返回空 >> 0 获取ID为false的联系人列表,返回空 >> 0 获取ID为null的联系人列表,返回空 >> 0 @@ -20,8 +24,9 @@ pid=1 $user = new userTest(); -r($user->getContactListByIDTest(1)) && p('listName') && e('联系人列表1'); //获取ID为1的联系人列表名称 -r($user->getContactListByIDTest(60)) && p('account') && e('admin'); //获取ID为60的联系人列表创建者 -r($user->getContactListByIDTest(1000)) && p() && e('0'); //获取ID为1000的联系人列表,返回空 -r($user->getContactListByIDTest(false)) && p() && e('0'); //获取ID为false的联系人列表,返回空 -r($user->getContactListByIDTest(null)) && p() && e('0'); //获取ID为null的联系人列表,返回空 \ No newline at end of file +r($user->getContactListByIDTest(1)) && p('listName') && e('联系人列表1'); //获取ID为1的联系人列表名称 +r($user->getContactListByIDTest(2)) && p('account') && e('dev2'); //获取ID为2的联系人列表创建者 +r($user->getContactListByIDTest(3)) && p('userList') && e('test22,test42'); //获取ID为3的联系人列表所包含的用户 +r($user->getContactListByIDTest(1000)) && p() && e('0'); //获取ID为1000的联系人列表,返回空 +r($user->getContactListByIDTest(false)) && p() && e('0'); //获取ID为false的联系人列表,返回空 +r($user->getContactListByIDTest(null)) && p() && e('0'); //获取ID为null的联系人列表,返回空