You are here

protected function Commerce1TestBase::migrateProductVariations 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::migrateProductVariations()
  2. 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\Commerce1TestBase::migrateProductVariations()

Executes product variation migration.

Required modules:

  • commerce_price.
  • commerce_product.
  • commerce_store.
  • path.
3 calls to Commerce1TestBase::migrateProductVariations()
Commerce1TestBase::migrateProducts in modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php
Executes product migration.
ProductVariationRollbackTest::testProductVariation in modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationRollbackTest.php
Test product migration rollback.
ProductVariationTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php

File

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

Class

Commerce1TestBase
Base class for Commerce 1 migration tests.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

protected function migrateProductVariations() {
  $this
    ->installEntitySchema('view');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->executeMigrations([
    'commerce1_product_variation_type',
    'commerce1_product_variation',
  ]);
}