You are here

public function RangeSliderWidgetTest::testIsPropertyRequired in Facets 8

Tests default for required properties.

Overrides SliderWidgetTest::testIsPropertyRequired

File

modules/facets_range_widget/tests/src/Unit/Plugin/widget/RangeSliderWidgetTest.php, line 51

Class

RangeSliderWidgetTest
Unit test for widget.

Namespace

Drupal\Tests\facets_range_widget\Unit\Plugin\widget

Code

public function testIsPropertyRequired() {
  $this
    ->assertFalse($this->widget
    ->isPropertyRequired('llama', 'owl'));
  $this
    ->assertTrue($this->widget
    ->isPropertyRequired('range_slider', 'processors'));
  $this
    ->assertTrue($this->widget
    ->isPropertyRequired('show_only_one_result', 'settings'));
}