You are here

public function RangeFieldValidationTest::testRangeValidation in Range 8

Tests range field validation.

File

tests/src/Functional/RangeFieldValidationTest.php, line 83

Class

RangeFieldValidationTest
Tests range field validation.

Namespace

Drupal\Tests\range\Functional

Code

public function testRangeValidation() {
  foreach ([
    'range_integer',
    'range_float',
    'range_decimal',
  ] as $field_type) {
    $this
      ->createRangeField($field_type);
    $this
      ->rangeTestConstraints($field_type);
    $this
      ->deleteRangeField();
  }
}