From 2a0879e71c7d86d82a67720f6fa8a1a96a704c37 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Fri, 26 Dec 2025 15:15:44 +0800 Subject: [PATCH] * Optimize convert importjirachangeitem unit test script. --- module/convert/test/tao/importjirachangeitem.php | 11 +---------- module/convert/test/tao/processjiracontent.php | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/module/convert/test/tao/importjirachangeitem.php b/module/convert/test/tao/importjirachangeitem.php index 0689a7973c..61497b1284 100755 --- a/module/convert/test/tao/importjirachangeitem.php +++ b/module/convert/test/tao/importjirachangeitem.php @@ -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:导入多语言数据测试 \ No newline at end of file +r($convertTest->importJiraChangeItemTest($testData8)) && p() && e('true'); // 步骤9:导入多语言数据测试 diff --git a/module/convert/test/tao/processjiracontent.php b/module/convert/test/tao/processjiracontent.php index e1faa16842..81989ac572 100755 --- a/module/convert/test/tao/processjiracontent.php +++ b/module/convert/test/tao/processjiracontent.php @@ -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: processjiracontent.php?m=file&f=read&t=png&fileID=1 and 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 processjiracontent.php?m=file&f=read&t=png&fileID=1 here'); \ No newline at end of file +r($convertTest->processJiraContentTest('Image with options !screenshot.png|width=100,height=80! here', $fileList1)) && p() && e('Image with options processjiracontent.php?m=file&f=read&t=png&fileID=1 here');