Files
EasySoft-ZenTaoPMS/module/common/test/model/printclientlink.php
T
2025-09-15 15:06:13 +08:00

29 lines
957 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env php
<?php
/**
title=测试 commonModel::printClientLink();
timeout=0
cid=0
- 步骤1:两个配置都启用 @1
- 步骤2:仅xxserver安装 @0
- 步骤3:仅xuanxuan开启 @0
- 步骤4:两个都禁用 @0
- 步骤5xxserver未设置 @0
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/common.unittest.class.php';
su('admin');
$commonTest = new commonTest();
r($commonTest->printClientLinkTest('both_enabled')) && p() && e('1'); // 步骤1:两个配置都启用
r($commonTest->printClientLinkTest('xxserver_only')) && p() && e('0'); // 步骤2:仅xxserver安装
r($commonTest->printClientLinkTest('xuanxuan_only')) && p() && e('0'); // 步骤3:仅xuanxuan开启
r($commonTest->printClientLinkTest('both_disabled')) && p() && e('0'); // 步骤4:两个都禁用
r($commonTest->printClientLinkTest('xxserver_not_set')) && p() && e('0'); // 步骤5xxserver未设置