You are here

protected function FieldInstanceTest::assertLinkFields in Commerce Migrate 3.1.x

Same name and namespace in other branches
  1. 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldInstanceTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldInstanceTest::assertLinkFields()
  2. 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldInstanceTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldInstanceTest::assertLinkFields()

Asserts the settings of a link field config entity.

Parameters

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

int $title_setting: The expected title setting.

1 call to FieldInstanceTest::assertLinkFields()
FieldInstanceTest::testFieldInstances in modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldInstanceTest.php
Tests migrating D7 field instances to field_config entities.

File

modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldInstanceTest.php, line 91

Class

FieldInstanceTest
Tests field instance migration.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

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