public function ChartsTypeInfoTest::testGetChartType in Charts 8.3
Tests getChartType().
@dataProvider chartsChartsTypeInfo
Parameters
string $chartType: The chart type.
File
- tests/
src/ Unit/ Settings/ ChartsTypeInfoTest.php, line 97
Class
- ChartsTypeInfoTest
- Tests the ChartsTypeInfo class.
Namespace
Drupal\Tests\charts\Unit\SettingsCode
public function testGetChartType(string $chartType) {
$chartTypeInfo = $this->chartsTypeInfo
->getChartType($chartType);
$this
->assertInternalType('array', $chartTypeInfo);
$this
->assertArrayHasKey('label', $chartTypeInfo);
$this
->assertArrayHasKey('axis', $chartTypeInfo);
}