function MigrateVocabularyFieldInstanceTest::assertLinkFields

Same name in other branches
  1. 11.x core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateVocabularyFieldInstanceTest::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.

File

core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php, line 102

Class

MigrateVocabularyFieldInstanceTest
Vocabulary field instance migration.

Namespace

Drupal\Tests\forum\Kernel\Migrate\d6

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.