You are here

public function RangeSliderWidgetTest::testBuild in Facets 8

Tests building of the widget.

Overrides SliderWidgetTest::testBuild

File

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

Class

RangeSliderWidgetTest
Unit test for widget.

Namespace

Drupal\Tests\facets_range_widget\Unit\Plugin\widget

Code

public function testBuild() {
  $build = parent::testBuild();
  $this
    ->assertTrue($build['range']);
  $this
    ->assertEquals([
    3,
    19999,
  ], $build['values']);
}