Files
EasySoft-ZenTaoPMS/test/model/user/updatecontactList.php
2022-03-17 13:40:02 +08:00

26 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/user.class.php';
su('admin');
/**
title=userModel->updateContactList();
cid=1
pid=1
更新ID为1的联系人列表获取更新的联系人列表名称 >> 新的列表名称1
更新ID为2的联系人列表获取更新的联系人列表名称 >> 新的列表名称2
更新ID为1000的联系人列表获取更新的联系人列表 >> 0
*/
$user = new userTest();
$userList = array('admin,test2,user29,assfjg');
r($user->updateContactListTest(1, '新的列表名称1', $userList)) && p('listName') && e('新的列表名称1'); //更新ID为1的联系人列表获取更新的联系人列表名称
r($user->updateContactListTest(2, '新的列表名称2', $userList)) && p('listName') && e('新的列表名称2'); //更新ID为2的联系人列表获取更新的联系人列表名称
r($user->updateContactListTest(3, '新的列表名称3', '')) && p('userLsit') && e(''); //更新ID为3的联系人列表获取更新的联系人列表
r($user->updateContactListTest(1000, '新的列表名称4', $userList)) && p('userList') && e('0'); //更新ID为1000的联系人列表获取更新的联系人列表
system("./ztest init");