You are here

public function RangeWidgetUiTest::testTextFieldsWidgetUi in Range 8

Tests widget UI.

File

tests/src/Functional/Widget/RangeWidgetUiTest.php, line 60

Class

RangeWidgetUiTest
Tests the text fields field widget UI.

Namespace

Drupal\Tests\range\Functional\Widget

Code

public function testTextFieldsWidgetUi() {
  foreach ($this
    ->getRangeFieldTypes() as $this->fieldType) {

    // Create field and set form display.
    $this->fieldName = $this
      ->getFieldName($this->fieldType);
    $this
      ->createField($this->fieldType);

    // Assert that widget UI works as expected.
    $this
      ->assertTextFieldsWidgetUi();

    // Delete field.
    $this
      ->deleteField();
  }
}