* Modify unit test directory structure and data generation method.
This commit is contained in:
@@ -17,9 +17,9 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('chart')->config('chart')->gen(50);
|
||||
zdTable('module')->config('module')->gen(27)->fixPath();
|
||||
zdTable('user')->gen(5);
|
||||
zenData('chart')->loadYaml('chart')->gen(50);
|
||||
zenData('module')->loadYaml('module')->gen(27)->fixPath();
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -17,9 +17,9 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('chart')->config('chart')->gen(50);
|
||||
zdTable('module')->config('module')->gen(27)->fixPath();
|
||||
zdTable('user')->gen(5);
|
||||
zenData('chart')->loadYaml('chart')->gen(50);
|
||||
zenData('module')->loadYaml('module')->gen(27)->fixPath();
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -29,7 +29,7 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
$testNoDefault = array();
|
||||
|
||||
@@ -13,8 +13,8 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('module')->config('module')->gen(27);
|
||||
zdTable('user')->gen(5);
|
||||
zenData('module')->loadYaml('module')->gen(27);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -19,11 +19,11 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zdTable('product')->gen(5);
|
||||
zdTable('project')->gen(20);
|
||||
zdTable('dept')->gen(5);
|
||||
zdTable('bug')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
zenData('product')->gen(5);
|
||||
zenData('project')->gen(20);
|
||||
zenData('dept')->gen(5);
|
||||
zenData('bug')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -43,7 +43,7 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -18,9 +18,9 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('chart')->config('chart')->gen(50);
|
||||
zdTable('module')->config('module')->gen(27)->fixPath();
|
||||
zdTable('user')->gen(5);
|
||||
zenData('chart')->loadYaml('chart')->gen(50);
|
||||
zenData('module')->loadYaml('module')->gen(27)->fixPath();
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -16,9 +16,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/chart.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/chart.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
$chart = new chartTest();
|
||||
|
||||
@@ -13,7 +13,7 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
global $tester;
|
||||
|
||||
@@ -15,11 +15,11 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/chart.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/chart.unittest.class.php';
|
||||
|
||||
zdTable('chart')->config('chart')->gen(50);
|
||||
zdTable('module')->config('module')->gen(27)->fixPath();
|
||||
zdTable('user')->gen(5);
|
||||
zenData('chart')->loadYaml('chart')->gen(50);
|
||||
zenData('module')->loadYaml('module')->gen(27)->fixPath();
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
$chart = new chartTest();
|
||||
|
||||
@@ -48,8 +48,8 @@ cid=1
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
|
||||
zdTable('story')->config('story')->gen(50);
|
||||
zdTable('user')->gen(5);
|
||||
zenData('story')->loadYaml('story')->gen(50);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
$defaultSql = 'select * from zt_story';
|
||||
|
||||
@@ -41,10 +41,10 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/chart.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/chart.unittest.class.php';
|
||||
|
||||
zdTable('story')->config('story')->gen(50);
|
||||
zdTable('user')->gen(5);
|
||||
zenData('story')->loadYaml('story')->gen(50);
|
||||
zenData('user')->gen(5);
|
||||
su('admin');
|
||||
|
||||
$date = array();
|
||||
|
||||
Reference in New Issue
Block a user