You are here

public function FieldTest::testFields in Commerce Migrate 3.1.x

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

Tests the Drupal 6 field to Drupal 8 migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldTest.php, line 42

Class

FieldTest
Migrate field tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testFields() {

  /** @var \Drupal\field\Entity\FieldStorageConfig $field_storage */
  $field_storage = FieldStorageConfig::load('commerce_product.field_image_cache');
  $this
    ->assertInstanceOf(FieldStorageConfig::class, $field_storage);
  $field_storage = FieldStorageConfig::load('commerce_product.field_sustain');
  $this
    ->assertInstanceOf(FieldStorageConfig::class, $field_storage);
  $field_storage = FieldStorageConfig::load('commerce_product.field_engine');
  $this
    ->assertInstanceOf(FieldStorageConfig::class, $field_storage);
  $field_storage = FieldStorageConfig::load('commerce_product.field_integer');
  $this
    ->assertInstanceOf(FieldStorageConfig::class, $field_storage);
  $field_storage = FieldStorageConfig::load('node.field_integer');
  $this
    ->assertInstanceOf(FieldStorageConfig::class, $field_storage);
}