* 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
+3 -3
View File
@@ -8,13 +8,13 @@ cid=1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/release.class.php';
include dirname(__FILE__, 2) . '/lib/release.unittest.class.php';
$release = zdTable('release')->config('release');
$release = zenData('release')->loadYaml('release');
$release->bugs->range('`1,2,3`,`4,5,6`');
$release->leftBugs->range('`1,2,3`,`4,5,6`');
$release->gen(5);
zdTable('user')->gen(5);
zenData('user')->gen(5);
su('admin');
$releases = array(0, 1, 6);