* 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
@@ -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'); // 没有数据时获取最后一个解决方案