public function SliderWidgetTest::testIsPropertyRequired in Facets 8
Tests default for required properties.
Overrides WidgetTestBase::testIsPropertyRequired
1 method overrides SliderWidgetTest::testIsPropertyRequired()
- RangeSliderWidgetTest::testIsPropertyRequired in modules/
facets_range_widget/ tests/ src/ Unit/ Plugin/ widget/ RangeSliderWidgetTest.php - Tests default for required properties.
File
- modules/
facets_range_widget/ tests/ src/ Unit/ Plugin/ widget/ SliderWidgetTest.php, line 58
Class
- SliderWidgetTest
- Unit test for widget.
Namespace
Drupal\Tests\facets_range_widget\Unit\Plugin\widgetCode
public function testIsPropertyRequired() {
$this
->assertFalse($this->widget
->isPropertyRequired('llama', 'owl'));
$this
->assertTrue($this->widget
->isPropertyRequired('slider', 'processors'));
$this
->assertTrue($this->widget
->isPropertyRequired('show_only_one_result', 'settings'));
}