You are here

public function ChartsDefaultSettingsTest::testNumberOfDefaultSettings in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/Settings/ChartsDefaultSettingsTest.php \Drupal\Tests\charts\Unit\Settings\ChartsDefaultSettingsTest::testNumberOfDefaultSettings()
  2. 8.3 tests/src/Unit/Settings/ChartsDefaultSettingsTest.php \Drupal\Tests\charts\Unit\Settings\ChartsDefaultSettingsTest::testNumberOfDefaultSettings()

Tests the number of defaults settings.

File

tests/src/Unit/Settings/ChartsDefaultSettingsTest.php, line 55

Class

ChartsDefaultSettingsTest
@coversDefaultClass \Drupal\charts\Settings\ChartsDefaultSettings @group charts

Namespace

Drupal\Tests\charts\Unit\Settings

Code

public function testNumberOfDefaultSettings() {
  $this
    ->assertCount(39, $this->chartsDefaultSettings
    ->getDefaults());
  $this
    ->assertCount(7, $this->chartsDefaultSettings
    ->getDefaults(TRUE));
}