* Modify unit test directory structure and data generation method.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/execution.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/execution.unittest.class.php';
|
||||
|
||||
$execution = zdTable('project');
|
||||
$execution = zenData('project');
|
||||
$execution->id->range('1-5');
|
||||
$execution->name->range('项目1,项目2,迭代1,迭代2,迭代3');
|
||||
$execution->type->range('project{2},sprint,waterfall,kanban');
|
||||
@@ -15,7 +15,7 @@ $execution->begin->range('20230102 000000:0')->type('timestamp')->format('YY/MM/
|
||||
$execution->end->range('20230212 000000:0')->type('timestamp')->format('YY/MM/DD');
|
||||
$execution->gen(5);
|
||||
|
||||
$task = zdTable('task');
|
||||
$task = zenData('task');
|
||||
$task->id->range('1-10');
|
||||
$task->execution->range('3,4,5');
|
||||
$task->status->range('wait,doing');
|
||||
|
||||
Reference in New Issue
Block a user