* Modify unit test directory structure and data generation method.

This commit is contained in:
liyang
2024-04-22 14:25:50 +08:00
parent f909ed2792
commit 354c300c86
2674 changed files with 7803 additions and 7803 deletions
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/task.class.php';
include dirname(__FILE__, 2) . '/lib/task.unittest.class.php';
su('admin');
/**
@@ -12,7 +12,7 @@ cid=1
*/
$project = zdTable('project');
$project = zenData('project');
$project->id->range('2-5');
$project->project->range('6-9');
$project->name->prefix("迭代")->range('2-5');
@@ -29,7 +29,7 @@ $project->budgetUnit->range("CNY");
$project->percent->range("0-0");
$project->gen(4);
$task = zdTable('task');
$task = zenData('task');
$task->id->range('2-5');
$task->execution->range('2,3,3,4');
$task->name->prefix("任务")->range('1-5');