protected function MigrateFieldInstanceTest::assertLinkFields in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldInstanceTest::assertLinkFields()
Asserts the settings of a link field config entity.
Parameters
$id: The entity ID in the form ENTITY_TYPE.BUNDLE.FIELD_NAME.
$title_setting: The expected title setting.
1 call to MigrateFieldInstanceTest::assertLinkFields()
- MigrateFieldInstanceTest::testFieldInstances in core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFieldInstanceTest.php - Tests migrating D7 field instances to field_config entities.
File
- core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFieldInstanceTest.php, line 77
Class
- MigrateFieldInstanceTest
- Migrates Drupal 7 field instances.
Namespace
Drupal\Tests\field\Kernel\Migrate\d7Code
protected function assertLinkFields($id, $title_setting) {
$field = FieldConfig::load($id);
$this
->assertSame($title_setting, $field
->getSetting('title'));
}