public function SliderWidgetTest::testDefaultConfiguration in Facets 8
Tests default configuration.
Overrides WidgetTestBase::testDefaultConfiguration
1 method overrides SliderWidgetTest::testDefaultConfiguration()
- RangeSliderWidgetTest::testDefaultConfiguration in modules/
facets_range_widget/ tests/ src/ Unit/ Plugin/ widget/ RangeSliderWidgetTest.php - Tests default configuration.
File
- modules/
facets_range_widget/ tests/ src/ Unit/ Plugin/ widget/ SliderWidgetTest.php, line 40
Class
- SliderWidgetTest
- 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);
}