* 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
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -15,8 +15,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->gen(1);
zenData('pipeline')->gen(5);
zenData('repo')->gen(1);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,8 +17,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->config('repo')->gen(5);
zenData('pipeline')->gen(5);
zenData('repo')->loadYaml('repo')->gen(5);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,8 +17,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->config('repo')->gen(1);
zenData('pipeline')->gen(5);
zenData('repo')->loadYaml('repo')->gen(1);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('job')->gen(5);
zenData('job')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -15,8 +15,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('oauth')->gen(4);
zenData('pipeline')->gen(5);
zenData('oauth')->gen(4);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -18,7 +18,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
$gitlab->app->moduleName = 'gitlab';
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('job')->gen(5);
zenData('job')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -19,9 +19,9 @@ cid=1
*/
zdTable('user')->gen(10);
zdTable('pipeline')->gen(5);
zdTable('oauth')->config('oauth')->gen(5);
zenData('user')->gen(10);
zenData('pipeline')->gen(5);
zenData('oauth')->loadYaml('oauth')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -18,7 +18,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -16,8 +16,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('oauth')->config('oauth')->gen(4);
zenData('pipeline')->gen(5);
zenData('oauth')->loadYaml('oauth')->gen(4);
$gitlab = $tester->loadModel('gitlab');
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,8 +17,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->config('repo')->gen(5);
zenData('pipeline')->gen(5);
zenData('repo')->loadYaml('repo')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -19,7 +19,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+4 -4
View File
@@ -19,10 +19,10 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('user')->gen(10);
zdTable('company')->gen(1);
zdTable('oauth')->config('oauth')->gen(4);
zenData('pipeline')->gen(5);
zenData('user')->gen(10);
zenData('company')->gen(1);
zenData('oauth')->loadYaml('oauth')->gen(4);
$gitlab = $tester->loadModel('gitlab');
+1 -1
View File
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('relation')->config('relation')->gen(4);
zenData('relation')->loadYaml('relation')->gen(4);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('relation')->config('relation')->gen(4);
zenData('relation')->loadYaml('relation')->gen(4);
$gitlab = new gitlabTest();
$issueID = 5;
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,8 +16,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('oauth')->gen(5);
zenData('pipeline')->gen(5);
zenData('oauth')->gen(5);
$gitlab = $tester->loadModel('gitlab');
+2 -2
View File
@@ -16,8 +16,8 @@ cid=1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
zdTable('pipeline')->gen(5);
zdTable('oauth')->config('oauth')->gen(1);
zenData('pipeline')->gen(5);
zenData('oauth')->loadYaml('oauth')->gen(1);
su('admin');
global $tester;
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,7 +17,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -18,8 +18,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->config('repo')->gen(5);
zenData('pipeline')->gen(5);
zenData('repo')->loadYaml('repo')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -20,8 +20,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->config('repo')->gen(1);
zenData('pipeline')->gen(5);
zenData('repo')->loadYaml('repo')->gen(1);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -18,7 +18,7 @@ cid=1
*/
zdTable('relation')->config('relation')->gen(4);
zenData('relation')->loadYaml('relation')->gen(4);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
+4 -4
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -21,9 +21,9 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('oauth')->config('oauth')->gen(5);
zdTable('user')->gen(10);
zenData('pipeline')->gen(5);
zenData('oauth')->loadYaml('oauth')->gen(5);
zenData('user')->gen(10);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -19,7 +19,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('relation')->config('relation')->gen(4);
zenData('relation')->loadYaml('relation')->gen(4);
$gitlab = new gitlabTest();
+5 -5
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -31,15 +31,15 @@ cid=1
*/
zdTable('user')->gen(10);
zenData('user')->gen(10);
$userGroup = zdTable('usergroup');
$userGroup = zenData('usergroup');
$userGroup->account->range('user1,user2');
$userGroup->group->range('3,4');
$userGroup->gen(2);
zdTable('group')->gen(10);
$groupPriv = zdTable('grouppriv');
zenData('group')->gen(10);
$groupPriv = zenData('grouppriv');
$groupPriv->group->range('3,4{2}');
$groupPriv->module->range('space,instance');
$groupPriv->method->range('browse,manage');
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -15,8 +15,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('repo')->config('repo')->gen(1);
zenData('pipeline')->gen(5);
zenData('repo')->loadYaml('repo')->gen(1);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -15,10 +15,10 @@ cid=1
*/
zdTable('task')->gen(20);
zdTable('bug')->gen(10);
zdTable('pipeline')->gen(5);
zdTable('relation')->config('relation')->gen(4);
zenData('task')->gen(20);
zenData('bug')->gen(10);
zenData('pipeline')->gen(5);
zenData('relation')->loadYaml('relation')->gen(4);
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -17,8 +17,8 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zdTable('relation')->config('relation')->gen(4);
zenData('pipeline')->gen(5);
zenData('relation')->loadYaml('relation')->gen(4);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -14,7 +14,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -16,7 +16,7 @@ cid=1
*/
$repo = zdTable('repo')->config('repo');
$repo = zenData('repo')->loadYaml('repo');
$repo->path->range('');
$repo->gen(4);
@@ -17,10 +17,10 @@ cid=1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
zdTable('product')->gen(20);
zdTable('story')->gen(5);
zenData('product')->gen(20);
zenData('story')->gen(5);
su('admin');
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -15,7 +15,7 @@ cid=1
*/
zdTable('pipeline')->gen(5);
zenData('pipeline')->gen(5);
$gitlab = new gitlabTest();
@@ -17,10 +17,10 @@ cid=1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
zdTable('product')->gen(20);
zdTable('story')->gen(5);
zenData('product')->gen(20);
zenData('story')->gen(5);
su('admin');
$gitlab = new gitlabTest();
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/gitlab.class.php';
include dirname(__FILE__, 2) . '/lib/gitlab.unittest.class.php';
su('admin');
/**
@@ -19,7 +19,7 @@ cid=1
*/
zdTable('task')->gen(5);
zenData('task')->gen(5);
$gitlab = new gitlabTest();