Files
EasySoft-ZenTaoPMS/module/dept/test/model/creatememberlink.php
T
2023-12-27 14:31:16 +08:00

26 lines
532 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/dept.class.php';
zdTable('dept')->gen(20);
su('admin');
/**
title=测试 deptModel->createMemberLink();
cid=1
pid=1
获取创建的用户链接 >> 1
*/
$deptID = '2';
$dept = new deptTest();
$result = $dept->createMemberLinkTest($deptID);
$expect = helper::createLink('company', 'browse', "browseType=inside&dept={$deptID}");
r(strpos($result, $expect) !== false) && p() && e('1'); //获取创建的用户链接