You are here

public function DestinationCategoryTest::testMagento2Categories in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/magento/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Plugin\migrate\DestinationCategoryTest::testMagento2Categories()
  2. 3.1.x modules/shopify/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_shopify\Kernel\Plugin\migrate\DestinationCategoryTest::testMagento2Categories()
Same name and namespace in other branches
  1. 8.2 modules/magento/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Plugin\migrate\DestinationCategoryTest::testMagento2Categories()
  2. 3.0.x modules/magento/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_magento\Kernel\Plugin\migrate\DestinationCategoryTest::testMagento2Categories()

Tests Commerce 1 migrations are tagged as either Configuration or Content.

File

modules/magento/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php, line 39

Class

DestinationCategoryTest
Tests that all migrations are tagged as either content or configuration.

Namespace

Drupal\Tests\commerce_migrate_magento\Kernel\Plugin\migrate

Code

public function testMagento2Categories() {
  $migrations = \Drupal::service('plugin.manager.migration')
    ->createInstancesByTag('Magento 2');
  $this
    ->assertArrayHasKey('magento2_product_variation', $migrations);
  $this
    ->assertCategories($migrations);
}