protected function ProductVariationTest::setUp in Commerce Migrate 3.0.x
Same name in this branch
- 3.0.x modules/csv_example/tests/src/Kernel/Migrate/ProductVariationTest.php \Drupal\Tests\commerce_migrate_csv_example\Kernel\Migrate\ProductVariationTest::setUp()
- 3.0.x modules/shopify/tests/src/Kernel/Migrate/ProductVariationTest.php \Drupal\Tests\commerce_migrate_shopify\Kernel\Migrate\shopify\ProductVariationTest::setUp()
- 3.0.x modules/magento/tests/src/Kernel/Migrate/magento2/ProductVariationTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Migrate\magento2\ProductVariationTest::setUp()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductVariationTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\ProductVariationTest::setUp()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductVariationTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\ProductVariationTest::setUp()
- 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductVariationTest::setUp()
Same name and namespace in other branches
- 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductVariationTest::setUp()
- 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductVariationTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\ProductVariationTest::setUp()
Overrides MigrateDrupal7TestBase::setUp
File
- modules/
commerce/ tests/ src/ Kernel/ Migrate/ commerce1/ ProductVariationTest.php, line 45
Class
- ProductVariationTest
- Tests product variation migration.
Namespace
Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1Code
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_product_attribute');
$this
->installEntitySchema('commerce_product_attribute_value');
$this
->installEntitySchema('commerce_product_variation');
$this
->installSchema('comment', [
'comment_entity_statistics',
]);
$this
->installEntitySchema('file');
$this
->installEntitySchema('node');
$this
->installEntitySchema('profile');
$this
->installEntitySchema('taxonomy_term');
$this
->installConfig([
'node',
]);
$this
->installConfig([
'commerce_product',
]);
$this
->migrateFiles();
$this
->migrateFields();
$this
->executeMigrations([
'commerce1_product_variation_type',
'commerce1_product_type',
'commerce1_product_attribute',
'd7_taxonomy_term',
]);
$this
->migrateProductVariations();
}