* Optimize convert importjirachangeitem unit test script.

This commit is contained in:
wangyuting
2025-12-26 15:15:44 +08:00
parent f2d41418c5
commit 2a0879e71c
2 changed files with 2 additions and 11 deletions
@@ -45,15 +45,6 @@ try {
// 表可能已存在,忽略错误
}
// 3. 准备测试数据
$jiraRelationTable = zenData('jiratmprelation');
$jiraRelationTable->AType->range('jissue{3},jchangeitem{1}');
$jiraRelationTable->AID->range('1,2,3,1');
$jiraRelationTable->BType->range('zstory,ztask,zbug,zaction');
$jiraRelationTable->BID->range('1,2,3,101');
$jiraRelationTable->extra->range('issue,issue,issue,action');
$jiraRelationTable->gen(4);
$actionTable = zenData('action');
$actionTable->objectType->range('story,task,bug');
$actionTable->objectID->range('1-3');
@@ -183,4 +174,4 @@ $testData8 = array(
'newstring' => 'This is an English title'
)
);
r($convertTest->importJiraChangeItemTest($testData8)) && p() && e('true'); // 步骤9:导入多语言数据测试
r($convertTest->importJiraChangeItemTest($testData8)) && p() && e('true'); // 步骤9:导入多语言数据测试
@@ -45,4 +45,4 @@ r($convertTest->processJiraContentTest('This is a test !screenshot.png|thumbnail
r($convertTest->processJiraContentTest('Two images: !screenshot.png|thumb! and !image.jpg|width=100!', $fileList2)) && p() && e('Two images: <img src="{1.png}" alt="processjiracontent.php?m=file&f=read&t=png&fileID=1"/> and <img src="{2.jpg}" alt="processjiracontent.php?m=file&f=read&t=jpg&fileID=2"/>');
r($convertTest->processJiraContentTest('Missing file: !notfound.png|thumb!', $fileList3)) && p() && e('Missing file: !notfound.png|thumb!');
r($convertTest->processJiraContentTest('No image markers here', $fileList1)) && p() && e('0');
r($convertTest->processJiraContentTest('Image with options !screenshot.png|width=100,height=80! here', $fileList1)) && p() && e('Image with options <img src="{1.png}" alt="processjiracontent.php?m=file&f=read&t=png&fileID=1"/> here');
r($convertTest->processJiraContentTest('Image with options !screenshot.png|width=100,height=80! here', $fileList1)) && p() && e('Image with options <img src="{1.png}" alt="processjiracontent.php?m=file&f=read&t=png&fileID=1"/> here');