* 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
+2 -1
View File
@@ -2,6 +2,7 @@
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/custom.class.php';
$db->switchDB();
su('admin');
/**
@@ -47,4 +48,4 @@ r($custom->prepareSQLTest($paramString[2], $method[1])) && p() &&
r($custom->prepareSQLTest($paramString[3], $method[1])) && p() && e('0'); //测试method为deleteparamString参数为lang,key,section
r($custom->prepareSQLTest($paramString[4], $method[1])) && p() && e('0'); //测试method为deleteparamString参数为lang,key,section,module
r($custom->prepareSQLTest($paramString[5], $method[1])) && p() && e('0'); //测试method为deleteparamString参数为lang,key,section,module,vision
system("./ztest init");
$db->restoreDB();