From f45221d9d453192ef54d3a208d09a048eee8ee9d Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 11 Oct 2023 11:29:42 +0800 Subject: [PATCH] * testtask: refactor the script to test the getById method. --- module/testtask/test/model/getbyid.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/testtask/test/model/getbyid.php b/module/testtask/test/model/getbyid.php index b56695e97e..94f27cacee 100755 --- a/module/testtask/test/model/getbyid.php +++ b/module/testtask/test/model/getbyid.php @@ -72,6 +72,6 @@ global $tester; $tester->loadModel('testtask'); r($tester->testtask->getByID(0)) && p('') && e('0'); // 获取ID为0的测试单,返回空 -r($tester->testtask->getByID(1)) && p('project,name,product,productName,productType,execution,executionName,branch,build,buildName,owner,desc,status,auto') && e('11,测试单1,1,正常产品1,normal,101,迭代1,0,11,执行版本版本11,user3,这是测试单描述1,wait,no'); // 获取ID为1的测试单的详细信息 -r($tester->testtask->getByID(2)) && p('project,name,product,productName,productType,execution,executionName,branch,build,buildName,owner,desc,status,auto') && e('12,测试单2,2,正常产品2,normal,102,迭代2,0,12,执行版本版本12,user4,这是测试单描述2,doing,no'); // 获取ID为2的测试单的详细信息 -r($tester->testtask->getByID(3)) && p('project,name,product,productName,productType,execution,executionName,branch,build,buildName,owner,desc,status,auto') && e('13,测试单3,3,正常产品3,normal,103,迭代3,0,13,执行版本版本13,user5,这是测试单描述3,done,no'); // 获取ID为3的测试单的详细信息 +r($tester->testtask->getByID(1)) && p('project,name,product,productName,productType,execution,executionName,branch,build,buildName,owner,desc,status,auto') && e('11,测试单1,1,正常产品1,normal,101,迭代1,0,11,执行101版本11,user3,这是测试单描述1,wait,no'); // 获取ID为1的测试单的详细信息 +r($tester->testtask->getByID(2)) && p('project,name,product,productName,productType,execution,executionName,branch,build,buildName,owner,desc,status,auto') && e('12,测试单2,2,正常产品2,normal,102,迭代2,0,12,执行102版本12,user4,这是测试单描述2,doing,no'); // 获取ID为2的测试单的详细信息 +r($tester->testtask->getByID(3)) && p('project,name,product,productName,productType,execution,executionName,branch,build,buildName,owner,desc,status,auto') && e('13,测试单3,3,正常产品3,normal,103,迭代3,0,13,执行103版本13,user5,这是测试单描述3,done,no'); // 获取ID为3的测试单的详细信息