diff --git a/test/class/user.class.php b/test/class/user.class.php index 51e4393123..92abbd2b55 100755 --- a/test/class/user.class.php +++ b/test/class/user.class.php @@ -932,4 +932,15 @@ class userTest { return $this->objectModel->getVisionList(); } + + /** + * Get users who have authority to create stories. + * + * @access public + * @return array + */ + public function getCanCreateStoryUsersTest() + { + return $this->objectModel->getCanCreateStoryUsers(); + } } diff --git a/test/model/user/getcancreatestoryusers.php b/test/model/user/getcancreatestoryusers.php new file mode 100755 index 0000000000..8964304e65 --- /dev/null +++ b/test/model/user/getcancreatestoryusers.php @@ -0,0 +1,18 @@ +#!/usr/bin/env php +getCanCreateStoryUsers(); +cid=1 +pid=1 + +查找系统中有权限创建、批量创建需求的用户 >> A:admin;T:产品主管48 + +*/ + +$user = new userTest(); +r($user->getCanCreateStoryUsersTest()) && p('admin;td48') && e('A:admin;T:产品主管48'); //查找系统中有权限创建、批量创建需求的用户 diff --git a/test/model/user/getlist.php b/test/model/user/getlist.php index abb3fa8847..8e8ca259cb 100755 --- a/test/model/user/getlist.php +++ b/test/model/user/getlist.php @@ -18,7 +18,7 @@ pid=1 */ $user = new userTest(); -a($user->getListTest());die; + r($user->getListTest()) && p('1:realname') && e('开发1'); //查找系统中第二个未删除的、内部用户真实姓名,根据account正序排 r($user->getListTest()) && p('998:realname') && e('测试99'); //查找系统中未删除的、根据account正序排的最后一个用户的姓名 r($user->getListTest(true)) && p() && e('999'); //查找系统中所有未删除的、内部用户的数量