diff --git a/module/program/test/model/getproductpairs.php b/module/program/test/model/getproductpairs.php index fec0cacef9..c4ad0c9955 100755 --- a/module/program/test/model/getproductpairs.php +++ b/module/program/test/model/getproductpairs.php @@ -35,6 +35,7 @@ pid=1 - 根据项目集ID获取关联产品名字属性2 @产品2 - 获取项目集1下的未关闭的产品数量 @5 - 根据项目或项目集ID获取关联产品详情属性3 @产品3 +- 根据项目或项目集ID获取关联产品详情属性4 @~~ */ @@ -47,3 +48,4 @@ r(count($products1)) && p() && e('10'); // 获取项目集1下的所有产 r($products1) && p('2') && e('产品2'); // 根据项目集ID获取关联产品名字 r(count($products2)) && p() && e('5'); // 获取项目集1下的未关闭的产品数量 r($products2) && p('3') && e('产品3'); // 根据项目或项目集ID获取关联产品详情 +r($products2) && p('4') && e('~~'); // 根据项目或项目集ID获取关联产品详情 diff --git a/module/project/test/model/getlistbycurrentuser.php b/module/project/test/model/getlistbycurrentuser.php index 0ac7d56f10..1775e7680e 100644 --- a/module/project/test/model/getlistbycurrentuser.php +++ b/module/project/test/model/getlistbycurrentuser.php @@ -11,7 +11,17 @@ title=测试 projectModel->getListByCurrentUser(); timeout=0 cid=1 - +- 执行projectModel模块的getListByCurrentUser方法 @0 +- 执行projectModel模块的getListByCurrentUser方法 @1 +- 执行projectModel模块的getListByCurrentUser方法 + - 第1条的id属性 @1 + - 第1条的name属性 @项目1 +- 执行projectModel模块的getListByCurrentUser方法 + - 第1条的budget属性 @900000 + - 第1条的budgetUnit属性 @CNY +- 执行projectModel模块的getListByCurrentUser方法 + - 第1条的auth属性 @extend + - 第1条的code属性 @program1 */ @@ -24,5 +34,7 @@ $tester->app->config->vision = 'lite'; r(count($projectModel->getListByCurrentUser())) && p() && e('0'); $tester->app->config->vision = 'rnd'; -r(count($projectModel->getListByCurrentUser())) && p() && e('1'); -r($projectModel->getListByCurrentUser()) && p('1:id,name') && e('1,项目1'); +r(count($projectModel->getListByCurrentUser())) && p() && e('1'); +r($projectModel->getListByCurrentUser()) && p('1:id,name') && e('1,项目1'); +r($projectModel->getListByCurrentUser()) && p('1:budget,budgetUnit') && e('900000,CNY'); +r($projectModel->getListByCurrentUser()) && p('1:auth,code') && e('extend,program1');