You are here

public function OrderFieldInstanceTest::testFieldInstanceMigration in Commerce Migrate 8.2

Same name in this branch
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\OrderFieldInstanceTest::testFieldInstanceMigration()
  2. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\OrderFieldInstanceTest::testFieldInstanceMigration()
Same name and namespace in other branches
  1. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\OrderFieldInstanceTest::testFieldInstanceMigration()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\OrderFieldInstanceTest::testFieldInstanceMigration()

Tests migration of Ubercart 7 field instances.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/OrderFieldInstanceTest.php, line 56

Class

OrderFieldInstanceTest
Migrate field instance tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testFieldInstanceMigration() {
  $fields = [
    'commerce_order.default.field_order_logs',
  ];
  foreach ($fields as $field) {

    /** @var \Drupal\field\Entity\FieldStorageConfig $storage */
    $field_config = FieldConfig::load($field);
    $this
      ->assertInstanceOf(FieldConfig::class, $field_config, "{$field} is not an instance of FieldConfig");
  }
}