You are here

public function FormatterTestBase::testFieldFormatter in Range 8

Tests formatter.

File

tests/src/Kernel/Formatter/FormatterTestBase.php, line 85

Class

FormatterTestBase
Base class for range functional integration tests.

Namespace

Drupal\Tests\range\Kernel\Formatter

Code

public function testFieldFormatter() {

  // PHPUnit @dataProvider is calling setUp()/tearDown() with each data set
  // causing tests to be up to 20x slower.
  foreach ($this
    ->formatterDataProvider() as list($display_settings, $from, $to, $expected)) {
    $this
      ->assertFieldFormatter($display_settings, $from, $to, $expected);
  }
}