* Modify unit test directory structure and data generation method.
This commit is contained in:
@@ -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'); // 没有数据时获取最后一个解决方案
|
||||
Reference in New Issue
Block a user