You are here

public function WidgetTestBase::testDefaultConfiguration in Facets 8

Tests default configuration.

5 methods override WidgetTestBase::testDefaultConfiguration()
ArrayWidgetTest::testDefaultConfiguration in tests/src/Unit/Plugin/widget/ArrayWidgetTest.php
Tests default configuration.
CheckboxWidgetTest::testDefaultConfiguration in tests/src/Unit/Plugin/widget/CheckboxWidgetTest.php
Tests default configuration.
DropdownWidgetTest::testDefaultConfiguration in tests/src/Unit/Plugin/widget/DropdownWidgetTest.php
Tests default configuration.
LinksWidgetTest::testDefaultConfiguration in tests/src/Unit/Plugin/widget/LinksWidgetTest.php
Tests default configuration.
SliderWidgetTest::testDefaultConfiguration in modules/facets_range_widget/tests/src/Unit/Plugin/widget/SliderWidgetTest.php
Tests default configuration.

File

tests/src/Unit/Plugin/widget/WidgetTestBase.php, line 91

Class

WidgetTestBase
Base class for widget unit tests.

Namespace

Drupal\Tests\facets\Unit\Plugin\widget

Code

public function testDefaultConfiguration() {
  $default_config = $this->widget
    ->defaultConfiguration();
  $this
    ->assertEquals([
    'show_numbers' => FALSE,
    'soft_limit' => 0,
  ], $default_config);
}