You are here

protected function Ubercart6TestBase::migrateAttributes in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\Ubercart6TestBase::migrateAttributes()
  2. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\Ubercart6TestBase::migrateAttributes()

Executes attributes migrations.

Required modules:

  • commerce_price.
  • commerce_product.
  • commerce_store.
  • path.
4 calls to Ubercart6TestBase::migrateAttributes()
AttributeFieldInstanceTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldInstanceTest.php
AttributeFieldInstanceWidgetSettingsTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldInstanceWidgetSettingsTest.php
Ubercart6TestBase::migrateOrderItems in modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php
Executes order item migration.
Ubercart6TestBase::migrateProductVariations in modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php
Executes product variation migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/Ubercart6TestBase.php, line 44

Class

Ubercart6TestBase
Test base for Ubercart D6 tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

protected function migrateAttributes() {
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->installConfig([
    'commerce_product',
  ]);
  $this
    ->executeMigrations([
    'uc_attribute_field',
    'uc_product_attribute',
    'uc_attribute_field_instance',
    'uc_attribute_instance_widget_settings',
  ]);
}