You are here

protected function Commerce1TestBase::migrateOrders in Commerce Migrate 3.1.x

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

Executes order migration.

Required modules:

  • commerce_order.
  • commerce_price.
  • commerce_product.
  • commerce_store.
  • migrate_plus.
  • path.
2 calls to Commerce1TestBase::migrateOrders()
LogTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/LogTest.php
PaymentTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/PaymentTest.php

File

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

Class

Commerce1TestBase
Base class for Commerce 1 migration tests.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

protected function migrateOrders() {
  $this
    ->migrateOrderItems();
  $this
    ->migrateStore();
  $this
    ->migrateProfiles();
  $this
    ->executeMigrations([
    'commerce1_product_variation_type',
    'commerce1_product_variation',
    'commerce1_order_item_type',
    'commerce1_order_item',
    'commerce1_order',
  ]);
}