diff --git a/module/instance/test/model/getservicecount.php b/module/instance/test/model/getservicecount.php index 1ed0d39b63..ea6e8ddc37 100755 --- a/module/instance/test/model/getservicecount.php +++ b/module/instance/test/model/getservicecount.php @@ -1,9 +1,6 @@ #!/usr/bin/env php gen(5); -zdTable('space')->gen(5); - /** title=instanceModel->getServiceCount(); @@ -15,7 +12,11 @@ cid=1 */ -global $tester; +zdTable('user')->gen(5); +zdTable('instance')->gen(5); +zdTable('space')->gen(5); + +global $tester, $app; $tester->loadModel('instance'); su('admin'); @@ -24,4 +25,4 @@ r($instance) && p('') && e('1'); // 查看获取到的所有服务的数量 su('user1'); $instance = $tester->instance->getServiceCount(); -r($instance) && p('') && e('1'); // 查看获取到的所有服务的数量 \ No newline at end of file +r($instance) && p('') && e('1'); // 查看获取到的所有服务的数量