Files
EasySoft-ZenTaoPMS/module/convert/test/model/getjirastatuslist.php
T
2025-09-15 15:06:14 +08:00

29 lines
1.0 KiB
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=测试 convertModel::getJiraStatusList();
timeout=0
cid=0
- 步骤1:正常情况 @2
- 步骤2:空relations参数 @0
- 步骤3step不存在 @0
- 步骤4:没有zentaoObject键 @0
- 步骤5:匹配数据 @2
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/convert.unittest.class.php';
su('admin');
$convertTest = new convertTest();
r($convertTest->getJiraStatusListTest(1, array('zentaoObject' => array(1 => 'story')))) && p() && e('2'); // 步骤1:正常情况
r($convertTest->getJiraStatusListTest(1, array())) && p() && e('0'); // 步骤2:空relations参数
r($convertTest->getJiraStatusListTest(999, array('zentaoObject' => array(1 => 'story')))) && p() && e('0'); // 步骤3step不存在
r($convertTest->getJiraStatusListTest(1, array('otherKey' => 'value'))) && p() && e('0'); // 步骤4:没有zentaoObject键
r($convertTest->getJiraStatusListTest(2, array('zentaoObject' => array(2 => 'task')))) && p() && e('2'); // 步骤5:匹配数据