* Optimize convert importjirachangeitem unit test script.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user