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 D7 range fields data.
@dataProvider fieldDataMigrationDataProvider
File
- tests/
src/ Kernel/ Migrate/ d7/ MigrateRangeFieldTest.php, line 299
Class
- MigrateRangeFieldTest
- Tests Drupal 7 range fields migration.
Namespace
Drupal\Tests\range\Kernel\Migrate\d7Code
public function testFieldDataMigration($field_name, $expected) {
$node = Node::load(1);
$this
->assertSame($expected, $node->{$field_name}
->getValue());
}