You are here

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

Executes store migration.

Required modules:

  • commerce_currency.
  • commerce_store.
4 calls to Commerce1TestBase::migrateStore()
Commerce1TestBase::migrateOrders in modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php
Executes order migration.
Commerce1TestBase::migrateOrdersWithCart in modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php
Executes order migration with the cart enabled.
Commerce1TestBase::migrateProducts in modules/commerce/tests/src/Kernel/Migrate/commerce1/Commerce1TestBase.php
Executes product migration.
StoreTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/StoreTest.php

File

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

Class

Commerce1TestBase
Base class for Commerce 1 migration tests.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

protected function migrateStore() {
  $this
    ->installEntitySchema('commerce_store');
  $this
    ->migrateUsers(FALSE);
  $this
    ->executeMigrations([
    'commerce1_currency',
    'commerce1_store',
  ]);
}