public function ChartsTypeInfoTest::testGetChartTypes in Charts 8.3
Tests getChartTypes().
@dataProvider chartsChartsTypeInfo
Parameters
string $chartType: The chart type.
File
- tests/
src/ Unit/ Settings/ ChartsTypeInfoTest.php, line 83
Class
- ChartsTypeInfoTest
- Tests the ChartsTypeInfo class.
Namespace
Drupal\Tests\charts\Unit\SettingsCode
public function testGetChartTypes(string $chartType) {
$chartTypes = $this->chartsTypeInfo
->getChartTypes();
$this
->assertArrayHasKey($chartType, $chartTypes);
$this
->assertInternalType('string', $chartTypes[$chartType]
->render());
}