You are here

protected function ProductVariationTest::setUp in Commerce Migrate 8.2

Same name in this branch
  1. 8.2 modules/csv_example/tests/src/Kernel/Migrate/ProductVariationTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\ProductVariationTest::setUp()
  2. 8.2 modules/shopify/tests/src/Kernel/Migrate/ProductVariationTest.php \Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate\shopify\ProductVariationTest::setUp()
  3. 8.2 modules/magento/tests/src/Kernel/Migrate/magento2/ProductVariationTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProductVariationTest::setUp()
  4. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductVariationTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductVariationTest::setUp()
  5. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductVariationTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductVariationTest::setUp()
  6. 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductVariationTest::setUp()
Same name and namespace in other branches
  1. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductVariationTest::setUp()
  2. 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductVariationTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php, line 44

Class

ProductVariationTest
Tests product variation migration.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('commerce_product_attribute');
  $this
    ->installEntitySchema('commerce_product_attribute_value');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  $this
    ->installEntitySchema('file');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('profile');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installConfig([
    'node',
  ]);
  $this
    ->installConfig([
    'commerce_product',
  ]);
  $this
    ->migrateFiles();
  $this
    ->migrateFields();
  $this
    ->executeMigrations([
    'commerce1_product_variation_type',
    'commerce1_product_type',
    'commerce1_product_attribute',
    'd7_taxonomy_term',
  ]);
  $this
    ->migrateProductVariations();
}