* [unittest] fix buildpiecirclechart.

This commit is contained in:
qixinzhi
2025-07-02 03:01:04 +00:00
parent 876f5f2f95
commit 0763eb196e
2 changed files with 4 additions and 3 deletions
@@ -84,10 +84,11 @@ class screenTest
foreach($screenList as $screen)
{
$componentList_ = array();
if(!in_array($screen->id, array(5, 6, 8)))
if(!in_array($screen->id, array(3, 5, 6, 8)))
{
if(!$bultion) $componentList_ = json_decode($screen->scheme);
$scheme = json_decode($screen->scheme);
$componentList_ = $scheme->componentList;
}
else
{
@@ -30,7 +30,7 @@ $component->option = (object)array('dataset' => 0);
$component = $screen->buildPieCircleChart($component, $chart);
r($component->chartKey) && p('') && e('VCPieCircle'); // 测试组件类型
r($component->chartKey) && p('') && e('VPieCircle'); // 测试组件类型
r($component->option->dataset) && p('') && e('1'); // 测试dataset数据
r(is_array($component->option->series)) && p('') && e('1'); // 测试series数据
r($component->option->series[0]->type) && p('') && e('pie'); // 测试series数据