Files
EasySoft-ZenTaoPMS/module/action/test/tao/processattribute.php
T
2025-09-15 15:09:39 +08:00

29 lines
1001 B
PHP
Executable File

#!/usr/bin/env php
<?php
/**
title=测试 actionTao::processAttribute();
timeout=0
cid=0
- 执行actionTest模块的processAttributeTest方法,参数是'user' @user
- 执行actionTest模块的processAttributeTest方法,参数是'testtask' @task
- 执行actionTest模块的processAttributeTest方法,参数是'' @0
- 执行actionTest模块的processAttributeTest方法,参数是'product' @product
- 执行actionTest模块的processAttributeTest方法,参数是'bug123' @bug123
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/action.unittest.class.php';
su('admin');
$actionTest = new actionTest();
r($actionTest->processAttributeTest('user')) && p() && e('user');
r($actionTest->processAttributeTest('testtask')) && p() && e('task');
r($actionTest->processAttributeTest('')) && p() && e('0');
r($actionTest->processAttributeTest('product')) && p() && e('product');
r($actionTest->processAttributeTest('bug123')) && p() && e('bug123');