public function DestinationCategoryTest::testWoo3Categories in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/woocommerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php \Drupal\Tests\commerce_migrate_woocommerce\Kernel\Plugin\migrate\DestinationCategoryTest::testWoo3Categories()
- 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\migrateCode
public function testWoo3Categories() {
$migrations = \Drupal::service('plugin.manager.migration')
->createInstancesByTag('Magento 2');
$this
->assertArrayHasKey('woo3_taxonomy_vocabulary', $migrations);
$this
->assertCategories($migrations);
}