You are here

public function DestinationCategoryTest::testWoo3Categories in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/woocommerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_woocommerce\Kernel\Plugin\migrate\DestinationCategoryTest::testWoo3Categories()
  2. 3.0.x modules/woocommerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_woocommerce\Kernel\Plugin\migrate\DestinationCategoryTest::testWoo3Categories()

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

File

modules/woocommerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php, line 36

Class

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

Namespace

Drupal\Tests\commerce_migrate_woocommerce\Kernel\Plugin\migrate

Code

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