* Modify unit test directory structure and data generation method.
This commit is contained in:
@@ -16,10 +16,10 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('action')->gen(40);
|
||||
zdTable('user')->gen(5);
|
||||
zenData('action')->gen(40);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
@@ -45,9 +45,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ cid=1
|
||||
|
||||
*/
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ cid=1;
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ cid=1;
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ pid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
su('admin');
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ cid=1;
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -46,9 +46,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ cid=1
|
||||
|
||||
*/
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zdTable('config')->config('config')->gen(16);
|
||||
zenData('user')->gen(5);
|
||||
zenData('config')->loadYaml('config')->gen(16);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/tutorial.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/tutorial.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zenData('user')->gen(5);
|
||||
|
||||
$tutorial = new tutorialTest();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user