* Add switchDB by tests.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/user.class.php';
|
||||
$db->switchDB();
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
@@ -10,6 +11,8 @@ title=测试 userModel->updateProgramView();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
$user = new userTest();
|
||||
@@ -17,4 +20,4 @@ $user = new userTest();
|
||||
$programIdList = array('1', '2');
|
||||
|
||||
//r() && p() && e(''); //
|
||||
//system("./ztest init");
|
||||
$db->restoreDB();
|
||||
Reference in New Issue
Block a user