diff --git a/module/todo/test/tao/fetchrows.php b/module/todo/test/tao/fetchrows.php index 133abda6b6..6431f6d36e 100755 --- a/module/todo/test/tao/fetchrows.php +++ b/module/todo/test/tao/fetchrows.php @@ -14,7 +14,14 @@ title=测试 todoTao::fetchRows(); timeout=0 cid=1 -- 执行todo模块的fetchRows方法,参数是$todoIdList第1条的name属性 @自定义1的待办 +- 查看ID为1的待办的详细信息 + - 第1条的id属性 @1 + - 第1条的name属性 @自定义1的待办 + - 第1条的status属性 @wait +- 查看ID为2的待办的详细信息 + - 第2条的id属性 @2 + - 第2条的name属性 @BUG2的待办 + - 第2条的status属性 @doing */ @@ -23,5 +30,7 @@ initData(); global $tester; $tester->loadModel('todo'); -$todoIdList = array(1,2); -r($tester->todo->fetchRows($todoIdList)) && p('1:name') && e('自定义1的待办'); \ No newline at end of file +$todoIdList = array(1 => 1,2 => 2); +$todos = $tester->todo->fetchRows($todoIdList); +r($tester->todo->fetchRows($todoIdList)) && p('1:id,name,status') && e('1,自定义1的待办,wait'); // 查看ID为1的待办的详细信息 +r($tester->todo->fetchRows($todoIdList)) && p('2:id,name,status') && e('2,BUG2的待办,doing'); // 查看ID为2的待办的详细信息 \ No newline at end of file