* 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/git.class.php';
|
||||
$db->switchDB();
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
@@ -10,8 +11,7 @@ title=测试gitModel->updatecommit();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
测试正常的版本库 >> 1
|
||||
测试空的版本库 >> 0
|
||||
|
||||
|
||||
*/
|
||||
|
||||
@@ -24,4 +24,4 @@ r($git->updateCommit($repo)) && p() && e(1); // 测试正常的版本库
|
||||
$repo = new stdclass();
|
||||
r($git->updateCommit($repo)) && p() && e(0); // 测试空的版本库
|
||||
|
||||
system("./ztest init");
|
||||
$db->restoreDB();
|
||||
Reference in New Issue
Block a user