You are here

public function FieldInstanceTest::testFieldInstanceMigration in Commerce Migrate 8.2

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

Tests migration of field instances to products.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldInstanceTest.php, line 40

Class

FieldInstanceTest
Migrate field instance tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testFieldInstanceMigration() {
  $field = FieldConfig::load('commerce_product.product.field_image_cache');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('commerce_product.product.field_image_cache');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('commerce_product.product.field_integer');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('commerce_product.product.field_sustain');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('commerce_product.ship.field_engine');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('commerce_product.ship.field_image_cache');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('commerce_product.ship.field_integer');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
  $field = FieldConfig::load('node.page.field_integer');
  $this
    ->assertInstanceOf(FieldConfig::class, $field);
}