public function ChartsSettingsServiceTest::testGetChartsSettings in Charts 8.3
Same name and namespace in other branches
- 8.4 tests/src/Unit/Services/ChartsSettingsServiceTest.php \Drupal\Tests\charts\Unit\Services\ChartsSettingsServiceTest::testGetChartsSettings()
- 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\ServicesCode
public function testGetChartsSettings(array $config) {
$chartsSettingsService = $this
->createChartsSettingsService($config);
$chartSettings = $chartsSettingsService
->getChartsSettings();
$this
->assertArrayEquals($config, $chartSettings);
}