You are here

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\Settings

Code

public function testGetChartTypes(string $chartType) {
  $chartTypes = $this->chartsTypeInfo
    ->getChartTypes();
  $this
    ->assertArrayHasKey($chartType, $chartTypes);
  $this
    ->assertInternalType('string', $chartTypes[$chartType]
    ->render());
}