public function OrderFieldTest::testFields in Commerce Migrate 8.2
Same name in this branch
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/OrderFieldTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\OrderFieldTest::testFields()
- 8.2 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
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/OrderFieldTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\OrderFieldTest::testFields()
- 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\uc6Code
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");
}
}