27 lines
712 B
PHP
Executable File
27 lines
712 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/lib/dept.unittest.class.php';
|
|
|
|
zenData('dept')->gen(20);
|
|
su('admin');
|
|
|
|
/**
|
|
|
|
title=测试 deptModel->createGroupManageMemberLink();
|
|
cid=1
|
|
pid=1
|
|
|
|
测试权限分组2开发部链接生成是否正确 >> 1
|
|
|
|
*/
|
|
|
|
$deptIDList = array('2', '5');
|
|
$groupIDList = array('2', '12');
|
|
|
|
$dept = new deptTest();
|
|
$result = $dept->createGroupManageMemberLinkTest($deptIDList[0], $groupIDList[0]);
|
|
$expect = helper::createLink('group', 'managemember', "groupID={$groupIDList[0]}&deptID={$deptIDList[0]}");
|
|
|
|
r(strpos($result, $expect) !== false) && p() && e('1'); // 测试权限分组2开发部链接生成是否正确
|