* Fix unit test bug.
This commit is contained in:
@@ -5,6 +5,7 @@ include dirname(__FILE__, 2) . '/action.class.php';
|
||||
zdTable('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
zdTable('stage')->gen(5);
|
||||
zdTable('project')->config('project')->gen(5);
|
||||
zdTable('action')->config('action')->gen(4);
|
||||
|
||||
@@ -22,4 +23,4 @@ $action = new actionTest();
|
||||
|
||||
$hasDeleted = $action->restoreStagesTest(array(2 => 2, 3 => 3), array(1, 2));
|
||||
|
||||
r($hasDeleted) && p('') && e('1'); // 测试还原id为2和3的阶段
|
||||
r($hasDeleted) && p('') && e('1'); // 测试还原id为2和3的阶段
|
||||
|
||||
@@ -18,9 +18,7 @@ fields:
|
||||
range: "20201101 000000:1D"
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD hh::mm:ss"
|
||||
postfix: "\t"
|
||||
- field: lastEditedDate
|
||||
range: "20220101 000000:1D"
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD"
|
||||
postfix: "\t"
|
||||
|
||||
@@ -18,9 +18,7 @@ fields:
|
||||
range: "20201101 000000:1D"
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD hh::mm:ss"
|
||||
postfix: "\t"
|
||||
- field: lastEditedDate
|
||||
range: "20220101 000000:1D"
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD"
|
||||
postfix: "\t"
|
||||
|
||||
Reference in New Issue
Block a user