You are here

CurrencyTest.php in Commerce Migrate 8.2

File

modules/commerce/tests/src/Kernel/Migrate/commerce1/CurrencyTest.php
View source
<?php

namespace Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1;

use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;

/**
 * Tests currency migration.
 *
 * @group commerce_migrate
 * @group commerce_migrate_commerce1
 */
class CurrencyTest extends Commerce1TestBase {
  use CommerceMigrateTestTrait;

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'commerce_price',
    'commerce_store',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this
      ->executeMigration('commerce1_currency');
  }

  /**
   * Test currency migration from Commerce 1 to Commerce 2.
   */
  public function testCurrency() {
    $this
      ->assertCurrencyEntity('USD', 'USD', 'US Dollar', '840', 2, '$');
  }

}

Classes

Namesort descending Description
CurrencyTest Tests currency migration.