* Add switchDB by tests.
This commit is contained in:
Regular → Executable
+2
-1
@@ -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();
|
||||
Reference in New Issue
Block a user