public function RangeSliderWidgetTest::testDefaultConfiguration in Facets 8
Tests default configuration.
Overrides SliderWidgetTest::testDefaultConfiguration
File
- modules/
facets_range_widget/ tests/ src/ Unit/ Plugin/ widget/ RangeSliderWidgetTest.php, line 33
Class
- RangeSliderWidgetTest
- Unit test for widget.
Namespace
Drupal\Tests\facets_range_widget\Unit\Plugin\widgetCode
public function testDefaultConfiguration() {
$default_config = $this->widget
->defaultConfiguration();
$expected = [
'show_numbers' => FALSE,
'prefix' => '',
'suffix' => '',
'min_type' => 'search_result',
'min_value' => 0,
'max_type' => 'search_result',
'max_value' => 10,
'step' => 1,
];
$this
->assertEquals($expected, $default_config);
}