protected function Ubercart7TestBase::migrateProductVariations in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateProductVariations()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateProductVariations()
Executes product variation migration.
Required modules:
- commerce_price.
- commerce_product.
- commerce_store.
- filter.
- menu_ui.
- migrate_plus.
- node.
- path.
2 calls to Ubercart7TestBase::migrateProductVariations()
- ProductVariationRollbackTest::testProductVariation in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ ProductVariationRollbackTest.php - Test product migration rollback.
- ProductVariationTest::setUp in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ ProductVariationTest.php
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ Ubercart7TestBase.php, line 231
Class
- Ubercart7TestBase
- Test base for Ubercart 7 tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
protected function migrateProductVariations() {
$this
->installEntitySchema('node');
$this
->installEntitySchema('view');
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installConfig(static::$modules);
$this
->migrateStore();
$this
->migrateUsers(FALSE);
$this
->executeMigrations([
'd7_taxonomy_vocabulary',
'd7_comment_type',
'd7_comment_field',
'uc7_comment_type',
'uc7_comment_field',
'd7_field',
'uc_attribute_field',
'uc_product_attribute',
'uc_attribute_field_instance',
'd7_node_type',
'uc7_product_type',
'uc7_product_variation_type',
'uc7_product_variation',
]);
}