* Fix unit test bug.

This commit is contained in:
wangyuting
2024-03-27 15:35:09 +08:00
parent 6c54d91440
commit 8cacbb5052
15 changed files with 98 additions and 69 deletions
+3 -1
View File
@@ -24,6 +24,8 @@ cid=1
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/screen.class.php';
zdTable('screen')->gen(0);
$screenTest = new screenTest();
$screenIDList = array(1, 5, 8);
$screenList = array();
@@ -45,4 +47,4 @@ r($editCanvasConfig) && p('width,height') && e('1300, 3267'); // 测试id为1的
r($componentList) && p('0:id;43:id') && e('5scfjzqsbzo000;1j55da3c41vk00');
list($schmea, $filter) = $screenTest->genChartDataTest($screenList[5], $yearList[1], 0, $deptList[1], $accountList[1]);
r($filter) && p('year,dept,account') && e('2022,1,admin'); //测试传入的过滤参数是否正常赋值。
r($filter) && p('year,dept,account') && e('2022,1,admin'); //测试传入的过滤参数是否正常赋值。