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