* Add switchDB by tests.

This commit is contained in:
liyang
2022-08-09 14:11:38 +08:00
parent 40ba4c8a9e
commit 3bd5ccc13f
881 changed files with 3058 additions and 1826 deletions
Regular → Executable
+2 -1
View File
@@ -2,6 +2,7 @@
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/group.class.php';
$db->switchDB();
su('admin');
/**
@@ -25,4 +26,4 @@ $group = new groupTest();
r($group->createObject($t_name)) && p('name') && e('我是一个分组'); // 测试正常创建分组的名称
r($group->createObject($t_limited)) && p('role') && e('limited'); // 测试创建受限用户组分组
system("./ztest init");
$db->restoreDB();