protected function Ubercart7TestBase::migrateProducts in Commerce Migrate 3.1.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::migrateProducts()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateProducts()
Executes product migration.
Required modules:
- commerce_order.
- commerce_price.
- commerce_product.
- commerce_store.
- migrate_plus.
- path.
- profile.
- state_machine.
2 calls to Ubercart7TestBase::migrateProducts()
- ProductTest::setUp in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ ProductTest.php - ProductVariationRollbackTest::testProductVariation in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ ProductVariationRollbackTest.php - Test product migration rollback.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ Ubercart7TestBase.php, line 201
Class
- Ubercart7TestBase
- Test base for Ubercart 7 tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
protected function migrateProducts() {
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('path_alias');
$this
->installConfig(static::$modules);
$this
->migrateStore();
$this
->migrateContentTypes();
$this
->migrateFields();
$this
->migrateCommentTypes();
$this
->executeMigrations([
'uc_attribute_field',
'uc_product_attribute',
'uc_attribute_field_instance',
'uc7_product_variation',
'd7_node',
]);
}