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

26 lines
842 B
PHP

#!/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->deleteContactListTest();
cid=1
pid=1
删除ID为1的联系人列表 >> 0
删除ID为2的联系人列表 >> 0
删除ID为null的联系人列表 >> 0
删除ID为1000的联系人列表 >> 0
*/
$user = new userTest();
r($user->deleteContactListTest(1)) && p('listName') && e('0'); //删除ID为1的联系人列表
r($user->deleteContactListTest(2)) && p('listName') && e('0'); //删除ID为2的联系人列表
r($user->deleteContactListTest(null)) && p('userLsit') && e('0'); //删除ID为null的联系人列表
r($user->deleteContactListTest(1000)) && p('userList') && e('0'); //删除ID为1000的联系人列表
system("./ztest init");