OrderMigrationClassTest.php in Commerce Migrate 8.2
File
modules/commerce/tests/src/Kernel/Migrate/commerce1/OrderMigrationClassTest.php
View source
<?php
namespace Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1;
class OrderMigrationClassTest extends Commerce1TestBase {
public static $modules = [
'commerce_store',
];
public function testClass() {
$migration = $this
->getMigration('commerce1_order');
$this
->assertSame('commerce1_order', $migration
->id());
$process = $migration
->getProcess();
$this
->assertSame('commerce_line_items', $process['order_items'][0]['source']);
$this
->assertSame('commerce_order_total', $process['total_price'][0]['source']);
$this
->assertSame('commerce_customer_billing', $process['billing_profile'][0]['source']);
}
}