* Fix getservicecount unit test bug.

This commit is contained in:
wangyuting
2024-03-11 15:58:55 +08:00
parent 2de313b1bd
commit 800b5cb2aa
@@ -1,9 +1,6 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
zdTable('instance')->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'); // 查看获取到的所有服务的数量
r($instance) && p('') && e('1'); // 查看获取到的所有服务的数量