You are here

CurrencyTest.php in Commerce Migrate 3.1.x

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/CurrencyTest.php
View source
<?php

namespace Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6;

use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;

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

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

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

  /**
   * Test currency migration.
   */
  public function testCurrency() {
    $this
      ->assertCurrencyEntity('NZD', 'NZD', 'New Zealand Dollar', '554', 2, '$');
  }

}

Classes

Namesort descending Description
CurrencyTest Tests currency migration.