OrderItemTypeTest.php in Commerce Migrate 3.0.x
File
modules/commerce/tests/src/Kernel/Migrate/commerce1/OrderItemTypeTest.php
View source
<?php
namespace Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;
class OrderItemTypeTest extends Commerce1TestBase {
use CommerceMigrateTestTrait;
public static $modules = [
'commerce_order',
'commerce_price',
'commerce_store',
];
protected function setUp() {
parent::setUp();
$this
->executeMigration('commerce1_order_item_type');
}
public function testOrderItemType() {
$order_item_type = [
'id' => 'product',
'label' => 'product',
'purchasableEntityType' => 'commerce_product_variation',
'orderType' => 'default',
];
$this
->assertOrderItemType($order_item_type);
}
}