You are here

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

Executes content type migration.

Required modules:

  • commerce_product.
  • node.

Overrides MigrateDrupal7TestBase::migrateContentTypes

6 calls to Ubercart7TestBase::migrateContentTypes()
CommentEntityDisplayTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/CommentEntityDisplayTest.php
CommentEntityFormDisplayTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/CommentEntityFormDisplayTest.php
CommentFieldInstanceTest::setUp in modules/ubercart/tests/src/Kernel/Migrate/uc7/CommentFieldInstanceTest.php
Ubercart7TestBase::migrateFields in modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php
Executes field migration.
Ubercart7TestBase::migrateOrderItems in modules/ubercart/tests/src/Kernel/Migrate/uc7/Ubercart7TestBase.php
Executes order item migration.

... See full list

File

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

Class

Ubercart7TestBase
Test base for Ubercart 7 tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

protected function migrateContentTypes() {
  parent::migrateContentTypes();
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->installConfig([
    'commerce_product',
  ]);
  $this
    ->executeMigrations([
    'uc7_product_variation_type',
    'uc7_product_type',
  ]);
}