You are here

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

Executes profile migrations.

Required modules:

  • commerce_order.
  • commerce_price.
  • commerce_product.
  • commerce_store.
  • migrate_plu.
  • path.
3 calls to Commerce1TestBase::migrateProfiles()
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.
ProfileTest::setUp in modules/commerce/tests/src/Kernel/Migrate/commerce1/ProfileTest.php

File

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

Class

Commerce1TestBase
Base class for Commerce 1 migration tests.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

protected function migrateProfiles() {
  $this
    ->installEntitySchema('commerce_number_pattern');
  $this
    ->installEntitySchema('commerce_store');
  $this
    ->installEntitySchema('commerce_order');
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->installEntitySchema('profile');
  $this
    ->installEntitySchema('view');
  $this
    ->installConfig('commerce_order');
  $this
    ->installConfig('commerce_product');
  $this
    ->installConfig('profile');
  $this
    ->migrateUsers(FALSE);
  $this
    ->executeMigrations([
    'commerce1_profile_type',
    'commerce1_profile',
    'commerce1_profile_revision',
  ]);
}