* 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
+4 -2
View File
@@ -2,6 +2,7 @@
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/bug.class.php';
$db->switchDB();
su('admin');
/**
@@ -11,7 +12,8 @@ cid=1
pid=1
批量确认1 3 4 51 81 >> ,1,1,1,1,1
批量确认2 7 >> ,1,1
批量确认2 7 >> ,1,1
*/
$bugIDlist1 = array('1','3','4','51','81');
@@ -21,4 +23,4 @@ $bugIDlist2 = array('2', '7');
$bug = new bugTest();
r($bug->batchConfirmTest($bugIDlist1)) && p() && e(',1,1,1,1,1'); // 批量确认1 3 4 51 81
r($bug->batchConfirmTest($bugIDlist2)) && p() && e(',1,1'); // 批量确认2 7
system("./ztest init");
$db->restoreDB();