* Modify unit test directory structure and data generation method.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/dev.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/dev.unittest.class.php';
|
||||
|
||||
su('admin');
|
||||
|
||||
$ztLang = zdTable('lang');
|
||||
$ztLang = zenData('lang');
|
||||
$ztLang->id->range('1-3');
|
||||
$ztLang->lang->range('zh-cn');
|
||||
$ztLang->module->range('common,myMenu,my');
|
||||
@@ -14,7 +14,7 @@ $ztLang->key->range('productCommon,index,all');
|
||||
$ztLang->value->range('1-3')->prefix('测试');
|
||||
$ztLang->gen(3);
|
||||
|
||||
zdTable('config')->gen(0);
|
||||
zenData('config')->gen(0);
|
||||
|
||||
/**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user