diff --git a/module/user/test/model/getuserdisplayinfos.php b/module/user/test/model/getuserdisplayinfos.php deleted file mode 100755 index 8a58364322..0000000000 --- a/module/user/test/model/getuserdisplayinfos.php +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env php -gen(1000); - -/** - -title=测试 userModel->getuserdisplayinfos(); -cid=1 -pid=1 - -查找获取到的用户名为dev33的真实姓名 >> 开发33 -查找获取到的用户名为user10的头像 >> /home/z/tmp/10.png -查找获取到的用户名为outside1的外部用户的头像信息 >> /home/z/tmp/18.png -查找获取到的用户名为cccfff的真实姓名 >> Error: Cannot get index cccfff. - -*/ - -$accounts = array('!asd12d', '中文用户名', 'user10', 'dev33', 'cccfff', 'outside1'); -$user = new userTest(); - -r($user->getUserDisplayInfosTest($accounts)) && p('dev33:realname') && e('开发33'); //查找获取到的用户名为dev33的真实姓名 -r($user->getUserDisplayInfosTest($accounts)) && p('user10:roleName') && e('测试'); //查找获取到的用户名为user10的头像 -r($user->getUserDisplayInfosTest($accounts, 0, 'outside')) && p('outside1:role') && e('dev'); //查找获取到的用户名为outside1的外部用户的头像信息 -r($user->getUserDisplayInfosTest($accounts)) && p('cccfff:realname') && e('Error: Cannot get index cccfff.'); //查找获取到的用户名为cccfff的真实姓名 diff --git a/module/user/test/user.class.php b/module/user/test/user.class.php index 14b4537575..1078b87686 100755 --- a/module/user/test/user.class.php +++ b/module/user/test/user.class.php @@ -154,29 +154,6 @@ class userTest } } - /** - * Test get user display infos. - * - * @param int $accounts - * @param int $deptID - * @param string $type - * @access public - * @return void - */ - public function getUserDisplayInfosTest($accounts, $deptID = 0, $type = 'inside') - { - $objects = $this->objectModel->getUserDisplayInfos($accounts, $deptID, $type); - if(dao::isError()) - { - $error = dao::getError(); - return $error[0]; - } - else - { - return $objects; - } - } - /** * Test get user by id. *