You are here

public function MigrateRangeFieldTest::testFieldFormatterMigration in Range 8

Same name in this branch
  1. 8 tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d6\MigrateRangeFieldTest::testFieldFormatterMigration()
  2. 8 tests/src/Kernel/Migrate/d7/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d7\MigrateRangeFieldTest::testFieldFormatterMigration()

Tests migration of D7 range field formatters & their settings.

@dataProvider fieldFormatterMigrationDataProvider

File

tests/src/Kernel/Migrate/d7/MigrateRangeFieldTest.php, line 208

Class

MigrateRangeFieldTest
Tests Drupal 7 range fields migration.

Namespace

Drupal\Tests\range\Kernel\Migrate\d7

Code

public function testFieldFormatterMigration($display_id, $component_id, $type, $settings) {
  $component = EntityViewDisplay::load($display_id)
    ->getComponent($component_id);
  $this
    ->assertIsArray($component);
  $this
    ->assertSame($type, $component['type']);
  $this
    ->assertSame($settings, $component['settings']);
}