protected function Ubercart7TestBase::migrateOrderItems in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateOrderItems()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateOrderItems()
Executes order item migration.
Required modules:
- commerce_order.
- commerce_price.
- commerce_product.
- commerce_store.
- migrate_plus.
- path.
- profile.
- state_machine.
2 calls to Ubercart7TestBase::migrateOrderItems()
- OrderItemTest::setUp in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ OrderItemTest.php - Ubercart7TestBase::migrateOrders in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ Ubercart7TestBase.php - Executes order migration.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ Ubercart7TestBase.php, line 144
Class
- Ubercart7TestBase
- Test base for Ubercart 7 tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
protected function migrateOrderItems() {
$this
->installEntitySchema('commerce_order');
$this
->installEntitySchema('commerce_order_item');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('profile');
$this
->migrateStore();
$this
->installSchema('commerce_number_pattern', [
'commerce_number_pattern_sequence',
]);
$this
->installConfig([
'commerce_order',
'commerce_product',
]);
$this
->migrateContentTypes();
$this
->migrateAttributes();
$this
->executeMigrations([
'uc7_product_variation',
'd7_node',
'uc7_profile_billing',
'uc7_order_product',
]);
}