protected function Ubercart6TestBase::migrateProductVariations in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\Ubercart6TestBase::migrateProductVariations()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\Ubercart6TestBase::migrateProductVariations()
Executes product variation migration.
Required modules:
- commerce_price.
- commerce_product.
- commerce_store.
- filter.
- menu_ui.
- migrate_plus.
- node.
- path.
4 calls to Ubercart6TestBase::migrateProductVariations()
- NodeTest::setUp in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ NodeTest.php - ProductVariationRollbackTest::testProductVariation in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ ProductVariationRollbackTest.php - Test product migration rollback.
- ProductVariationTest::setUp in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ ProductVariationTest.php - Ubercart6TestBase::migrateProducts in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ Ubercart6TestBase.php - Executes product variation migration.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ Ubercart6TestBase.php, line 180
Class
- Ubercart6TestBase
- Test base for Ubercart D6 tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6Code
protected function migrateProductVariations() {
$this
->installEntitySchema('commerce_currency');
$this
->installEntitySchema('commerce_store');
$this
->installConfig([
'commerce_store',
]);
$this
->installEntitySchema('node');
$this
->installEntitySchema('path_alias');
$this
->installEntitySchema('view');
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installConfig(static::$modules);
$this
->migrateStore();
$this
->migrateUsers(FALSE);
$this
->migrateFields();
$this
->migrateAttributes();
$this
->executeMigrations([
'language',
'd6_language_content_settings',
'd6_node_settings',
'uc6_language_content_settings',
'uc6_product_variation_type',
'uc6_product_variation',
'd6_node',
'd6_node_translation',
]);
}