* Modify unit test directory structure and data generation method.
This commit is contained in:
@@ -14,11 +14,11 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/solution.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/solution.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zdTable('solution')->config('solution')->gen(0);
|
||||
zdTable('instance')->config('instance')->gen(0);
|
||||
zenData('user')->gen(5);
|
||||
zenData('solution')->loadYaml('solution')->gen(0);
|
||||
zenData('instance')->loadYaml('instance')->gen(0);
|
||||
|
||||
$params = array(
|
||||
'git' => '',
|
||||
|
||||
@@ -21,11 +21,11 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/solution.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/solution.unittest.class.php';
|
||||
|
||||
zdTable('space')->config('space')->gen(2);
|
||||
zdTable('solution')->config('solution')->gen(2);
|
||||
zdTable('instance')->config('instance')->gen(4);
|
||||
zenData('space')->loadYaml('space')->gen(2);
|
||||
zenData('solution')->loadYaml('solution')->gen(2);
|
||||
zenData('instance')->loadYaml('instance')->gen(4);
|
||||
|
||||
$solutionModel = new solutionTest();
|
||||
|
||||
|
||||
@@ -15,13 +15,13 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/solution.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/solution.unittest.class.php';
|
||||
|
||||
zdTable('solution')->config('solution')->gen(2);
|
||||
zenData('solution')->loadYaml('solution')->gen(2);
|
||||
|
||||
$solutionModel = new solutionTest();
|
||||
|
||||
r($solutionModel->getLastSolutionTest()) && p('id,name') && e('2,禅道 DevOps 解决方案2'); // 获取最后一个解决方案
|
||||
|
||||
zdTable('solution')->config('solution')->gen(0);
|
||||
zenData('solution')->loadYaml('solution')->gen(0);
|
||||
r($solutionModel->getLastSolutionTest()) && p() && e('0'); // 没有数据时获取最后一个解决方案
|
||||
@@ -16,11 +16,11 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/solution.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/solution.unittest.class.php';
|
||||
|
||||
zdTable('user')->gen(5);
|
||||
zdTable('solution')->config('solution')->gen(0);
|
||||
zdTable('instance')->config('instance')->gen(0);
|
||||
zenData('user')->gen(5);
|
||||
zenData('solution')->loadYaml('solution')->gen(0);
|
||||
zenData('instance')->loadYaml('instance')->gen(0);
|
||||
|
||||
$solutionModel = new solutionTest();
|
||||
r($solutionModel->pickAppFromSchemaTest('git', 'gitee')) && p() && e('0'); // 类别和应用不对应
|
||||
|
||||
@@ -18,9 +18,9 @@ cid=1
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/solution.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/solution.unittest.class.php';
|
||||
|
||||
zdTable('solution')->config('solution')->gen(1);
|
||||
zenData('solution')->loadYaml('solution')->gen(1);
|
||||
|
||||
$solutionModel = new solutionTest();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user