You are here

protected function Ubercart7TestBase::migrateFields 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::migrateFields()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\Ubercart7TestBase::migrateFields()

Executes field migration.

Required modules:

  • comment.
  • commerce_price.
  • commerce_product.
  • commerce_store.
  • image.
  • migrate_plus.
  • node.
  • path.
  • taxonomy.
  • text.

Overrides MigrateDrupal7TestBase::migrateFields

4 calls to Ubercart7TestBase::migrateFields()
FieldFormatterSettingsTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php
FieldInstanceTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldInstanceTest.php
FieldWidgetSettingsTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldWidgetSettingsTest.php
Ubercart7TestBase::migrateProducts in modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php
Executes product migration.

File

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

Class

Ubercart7TestBase
Test base for Ubercart 7 tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

protected function migrateFields() {
  $this
    ->migrateContentTypes();
  $this
    ->migrateCommentTypes();
  $this
    ->executeMigrations([
    'd7_taxonomy_vocabulary',
    'd7_field',
    'd7_field_instance',
  ]);
}