public function OrderFieldInstanceTest::testFieldInstanceMigration in Commerce Migrate 3.0.x
Same name in this branch
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\OrderFieldInstanceTest::testFieldInstanceMigration()
- 3.0.x 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
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\OrderFieldInstanceTest::testFieldInstanceMigration()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/OrderFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\OrderFieldInstanceTest::testFieldInstanceMigration()
Tests migration of Ubercart 7 field instances.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ OrderFieldInstanceTest.php, line 55
Class
- OrderFieldInstanceTest
- Migrate field instance tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
public function testFieldInstanceMigration() {
$fields = [
'commerce_order.default.field_order_comments',
'commerce_order.default.field_order_admin_comments',
'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");
}
}