You are here

public function ChartsSettingsServiceTest::testGetChartsSettings in Charts 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/Services/ChartsSettingsServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartsSettingsServiceTest::testGetChartsSettings()
  2. 5.0.x tests/src/Unit/Services/ChartsSettingsServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartsSettingsServiceTest::testGetChartsSettings()

Tests if the default chart settings are available.

@dataProvider chartsSettingsServiceProvider

Parameters

array $config: A default module configuration.

File

tests/src/Unit/Services/ChartsSettingsServiceTest.php, line 22

Class

ChartsSettingsServiceTest
@coversDefaultClass \Drupal\charts\Services\ChartsSettingsService @group charts

Namespace

Drupal\Tests\charts\Unit\Services

Code

public function testGetChartsSettings(array $config) {
  $chartsSettingsService = $this
    ->createChartsSettingsService($config);
  $chartSettings = $chartsSettingsService
    ->getChartsSettings();
  $this
    ->assertArrayEquals($config, $chartSettings);
}