ProductTypeTest.php in Commerce Migrate 3.0.x
Same filename in this branch
- 3.0.x modules/shopify/tests/src/Kernel/Migrate/ProductTypeTest.php
- 3.0.x modules/magento/tests/src/Kernel/Migrate/magento2/ProductTypeTest.php
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductTypeTest.php
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/ProductTypeTest.php
- 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/ProductTypeTest.php
- 3.0.x modules/ubercart/tests/src/Kernel/Plugin/migrate/source/uc7/ProductTypeTest.php
- 3.0.x modules/ubercart/tests/src/Kernel/Plugin/migrate/source/uc6/ProductTypeTest.php
- 3.0.x modules/commerce/tests/src/Kernel/Plugin/migrate/source/commerce1/ProductTypeTest.php
Same filename and directory in other branches
File
modules/ubercart/tests/src/Kernel/Migrate/uc7/ProductTypeTest.phpView source
<?php
namespace Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;
/**
* Tests product type migration.
*
* @group commerce_migrate
* @group commerce_migrate_uc7
*/
class ProductTypeTest extends Ubercart7TestBase {
use CommerceMigrateTestTrait;
/**
* {@inheritdoc}
*/
public static $modules = [
'commerce_product',
'commerce_migrate_ubercart',
'commerce_price',
'commerce_store',
'node',
'path',
'text',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('commerce_product');
$this
->installConfig([
'commerce_product',
]);
$this
->executeMigration('uc7_product_type');
}
/**
* Test product type migration.
*/
public function testProductType() {
$description = 'Use <em>products</em> to represent items for sale on the website, including all the unique information that can be attributed to a specific model number.';
$this
->assertProductTypeEntity('product', 'Product', $description, 'product');
$description = 'Fun!';
$this
->assertProductTypeEntity('entertainment', 'Entertainment', $description, 'entertainment');
}
}
Classes
Name | Description |
---|---|
ProductTypeTest | Tests product type migration. |