OrderSettingsTest.php in Commerce Migrate 3.0.x
File
modules/commerce/tests/src/Kernel/Migrate/commerce1/OrderSettingsTest.php
View source
<?php
namespace Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1;
class OrderSettingsTest extends Commerce1TestBase {
public static $modules = [
'commerce_number_pattern',
'commerce_store',
'commerce_order',
'commerce_price',
'commerce_store',
'path',
'profile',
];
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('commerce_store');
$this
->installEntitySchema('commerce_order');
$this
->installEntitySchema('profile');
$this
->installSchema('commerce_number_pattern', [
'commerce_number_pattern_sequence',
]);
$this
->installConfig('commerce_order');
$this
->executeMigration('commerce1_cart_settings');
}
public function testMigration() {
$order_settings = $this
->config('commerce_order.commerce_order_type.default');
$this
->assertSame('customer', $order_settings
->get('refresh_mode'));
$this
->assertSame(12, $order_settings
->get('refresh_frequency'));
}
}