DestinationCategoryTest.php in Commerce Migrate 3.1.x
Same filename in this branch
- 3.1.x modules/magento/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
- 3.1.x modules/woocommerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
- 3.1.x modules/shopify/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
- 3.1.x modules/ubercart/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
- 3.1.x modules/commerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.php
Same filename and directory in other branches
File
modules/commerce/tests/src/Kernel/Plugin/migrate/DestinationCategoryTest.phpView source
<?php
namespace Drupal\Tests\commerce_migrate_commerce\Kernel\Plugin\migrate;
use Drupal\Tests\commerce_migrate\Kernel\Plugin\migrate\DestinationCategoryTestBase;
/**
* Tests that all migrations are tagged as either content or configuration.
*
* @group commerce_migrate
* @group commerce_migrate_commerce1
*/
class DestinationCategoryTest extends DestinationCategoryTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'action',
'address',
'commerce',
'commerce_log',
'commerce_migrate',
'commerce_migrate_commerce',
'commerce_order',
'commerce_payment',
'commerce_price',
'commerce_product',
'commerce_shipping',
'commerce_store',
'commerce_tax',
'datetime',
'entity',
'entity_reference_revisions',
'filter',
'image',
'inline_entity_form',
'link',
'node',
'options',
'path',
'path_alias',
'profile',
'physical',
'state_machine',
'taxonomy',
'telephone',
'text',
'views',
];
/**
* Tests Commerce 1 migrations are tagged as either Configuration or Content.
*/
public function testCommerceCategories() {
$dirs = $this->moduleHandler
->getModuleDirectories();
$commerce_migrate_commerce_directory = $dirs['commerce_migrate_commerce'];
$this
->loadFixture("{$commerce_migrate_commerce_directory}/tests/fixtures/ck2.php");
$migrations = $this->migrationPluginManager
->createInstancesByTag('Commerce');
$this
->assertArrayHasKey('commerce1_product:tops', $migrations);
$this
->assertCategories($migrations);
}
}
Classes
Name | Description |
---|---|
DestinationCategoryTest | Tests that all migrations are tagged as either content or configuration. |