function MigrateFieldInstanceTest::assertLinkFields

Same name in other branches
  1. 9 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldInstanceTest::assertLinkFields()
  2. 10 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldInstanceTest::assertLinkFields()
  3. 11.x 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\d7

Code

protected function assertLinkFields($id, $title_setting) {
    $field = FieldConfig::load($id);
    $this->assertSame($title_setting, $field->getSetting('title'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.