function MigrateFieldInstanceTest::assertLinkFields

Same name in other branches
  1. 8.9.x 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.

@internal

Parameters

string $id: The entity ID in the form ENTITY_TYPE.BUNDLE.FIELD_NAME.

int $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 82

Class

MigrateFieldInstanceTest
Migrates Drupal 7 field instances.

Namespace

Drupal\Tests\field\Kernel\Migrate\d7

Code

protected function assertLinkFields(string $id, int $title_setting) : void {
    $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.