public function FieldInstanceTest::testFieldInstanceMigration in Commerce Migrate 8.2
Same name in this branch
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldInstanceTest::testFieldInstanceMigration()
- 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
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldInstanceTest::testFieldInstanceMigration()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldInstanceTest::testFieldInstanceMigration()
Tests migration of Ubercart 7 field instances.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ FieldInstanceTest.php, line 44
Class
- FieldInstanceTest
- Migrate field instance tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
public function testFieldInstanceMigration() {
$fields = [
'commerce_product.product.body',
'commerce_product.product.field_number',
'commerce_product.product.field_sustainability',
'commerce_product.product.taxonomy_catalog',
'commerce_product.product.uc_product_image',
'node.article.body',
'node.article.field_image',
'node.article.field_tags',
'node.page.field_number',
'taxonomy_term.catalog.uc_catalog_image',
];
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");
}
}