public function MigrateRangeFieldTest::testFieldDataMigration in Range 8
Same name in this branch
- 8 tests/src/Kernel/Migrate/d6/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d6\MigrateRangeFieldTest::testFieldDataMigration()
- 8 tests/src/Kernel/Migrate/d7/MigrateRangeFieldTest.php \Drupal\Tests\range\Kernel\Migrate\d7\MigrateRangeFieldTest::testFieldDataMigration()
Tests migration of D6 range fields data.
@dataProvider fieldDataMigrationDataProvider
File
- tests/
src/ Kernel/ Migrate/ d6/ MigrateRangeFieldTest.php, line 363
Class
- MigrateRangeFieldTest
- Tests Drupal 6 range fields migration.
Namespace
Drupal\Tests\range\Kernel\Migrate\d6Code
public function testFieldDataMigration($field_name, $expected) {
$node = Node::load(1);
$this
->assertSame($expected, $node->{$field_name}
->getValue());
}