You are here

protected function Commerce1TestBase::migrateProducts in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\Commerce1TestBase::migrateProducts()
  2. 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\Commerce1TestBase::migrateProducts()

Executes product migration.

Required modules:

  • commerce_price.
  • commerce_product.
  • commerce_store.
  • path.
4 calls to Commerce1TestBase::migrateProducts()
Commerce1TestBase::migrateOrderItems in modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php
Executes order item migration.
NodeTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/NodeTest.php
ProductTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductTest.php
ProductVariationRollbackTest::testProductVariation in modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationRollbackTest.php
Test product migration rollback.

File

modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php, line 182

Class

Commerce1TestBase
Base class for Commerce 1 migration tests.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

protected function migrateProducts() {
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('path_alias');
  $this
    ->migrateStore();
  $this
    ->migrateProductVariations();
  $this
    ->executeMigrations([
    'commerce1_product_type',
    'commerce1_product',
  ]);
}