You are here

public function ChartsTypeInfoTest::testChartsChartsTypeInfo in Charts 8.3

Tests chartsChartsTypeInfo().

@dataProvider chartsChartsTypeInfo

Parameters

string $chartType: The chart type.

File

tests/src/Unit/Settings/ChartsTypeInfoTest.php, line 68

Class

ChartsTypeInfoTest
Tests the ChartsTypeInfo class.

Namespace

Drupal\Tests\charts\Unit\Settings

Code

public function testChartsChartsTypeInfo(string $chartType) {
  $chartsTypeInfo = $this->chartsTypeInfo
    ->chartsChartsTypeInfo();
  $this
    ->assertArrayHasKey($chartType, $chartsTypeInfo);
  $this
    ->assertArrayHasKey('label', $chartsTypeInfo[$chartType]);
  $this
    ->assertArrayHasKey('axis', $chartsTypeInfo[$chartType]);
}