You are here

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

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

Tests the Ubercart 7 field to Drupal 8 migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/OrderFieldTest.php, line 47

Class

OrderFieldTest
Tests migration of Ubercart 7 fields.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testFields() {
  $field_storages = [
    'commerce_order.field_order_logs',
  ];
  foreach ($field_storages as $field_storage) {

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