You are here

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

Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateOrders()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateOrders()

Executes order migration.

Required modules:

  • commerce_order.
  • commerce_price.
  • commerce_product.
  • commerce_store.
  • migrate_plus.
  • path.
  • profile.
  • state_machine.
2 calls to Ubercart7TestBase::migrateOrders()
OrderTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/OrderTest.php
PaymentTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/PaymentTest.php

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php, line 176

Class

Ubercart7TestBase
Test base for Ubercart 7 tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

protected function migrateOrders() {
  $this
    ->installEntitySchema('commerce_order');
  $this
    ->installEntitySchema('commerce_order_item');
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->installEntitySchema('profile');
  $this
    ->migrateOrderItems();
  $this
    ->executeMigration('uc_order_field');
  $this
    ->executeMigration('uc_order_field_instance');
  $this
    ->executeMigration('uc7_order');
}