* Fix search module unit test bug.
This commit is contained in:
@@ -149,7 +149,7 @@ $config->search->fields->aiapp = new stdclass();
|
||||
$config->search->fields->aiapp->id = 'id';
|
||||
$config->search->fields->aiapp->title = 'name';
|
||||
$config->search->fields->aiapp->content = 'desc';
|
||||
$config->search->fields->aiapp->addedDate = 'createdBy';
|
||||
$config->search->fields->aiapp->addedDate = 'createdDate';
|
||||
$config->search->fields->aiapp->editedDate = 'editedDate';
|
||||
|
||||
/* Set the recPerPage of search. */
|
||||
|
||||
@@ -25,7 +25,7 @@ $action->objectType->range('bug');
|
||||
$action->objectID->range('1,2');
|
||||
$action->actor->range('admin');
|
||||
$action->action->range('opened');
|
||||
$action->date->range('20230102 000000:0')->type('timestamp')->format('YYYY-MM-DD hh::mm::ss');
|
||||
$action->date->range('20230102 000000:0')->type('timestamp')->format('YYYY-MM-DD hh:mm:ss');
|
||||
$action->comment->prefix('创建bug')->range('1,2');
|
||||
$action->gen(2);
|
||||
|
||||
@@ -58,4 +58,4 @@ $dataIdList = array(1, 2);
|
||||
|
||||
$search = new searchTest();
|
||||
r($search->processDataListTest($modules[0], $bugField, $dataIdList)) && p('1:comment') && e("创建bug1文件标题1.txt"); //测试处理数据的comment
|
||||
r($search->processDataListTest($modules[1], $caseField, $dataIdList)) && p('1:desc,expect') && e("用例步骤描述1,这是用例预期结果1"); //测试处理用例的步骤
|
||||
r($search->processDataListTest($modules[1], $caseField, $dataIdList)) && p('1:desc,expect') && e("用例步骤描述1,这是用例预期结果1"); //测试处理用例的步骤
|
||||
|
||||
@@ -40,17 +40,11 @@ fields:
|
||||
format: ""
|
||||
- field: addedDate
|
||||
note: "添加日期"
|
||||
from: common.date.v1.yaml
|
||||
use: dateA
|
||||
prefix: ""
|
||||
postfix: ""
|
||||
loop: 0
|
||||
format: ""
|
||||
range: "(-1M)-(+1w):-1D"
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD hh:mm:ss"
|
||||
- field: editedDate
|
||||
note: "编辑日期"
|
||||
from: common.date.v1.yaml
|
||||
use: dateA
|
||||
prefix: ""
|
||||
postfix: ""
|
||||
loop: 0
|
||||
format: ""
|
||||
range: "(-1M)-(+1w):-1D"
|
||||
type: timestamp
|
||||
format: "YYYY-MM-DD hh:mm:ss"
|
||||
|
||||
Reference in New Issue
Block a user