CurrencyTest.php in Commerce Migrate 3.1.x
Same filename in this branch
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/CurrencyTest.php
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/CurrencyTest.php
- 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/CurrencyTest.php
- 3.1.x modules/ubercart/tests/src/Kernel/Plugin/migrate/source/CurrencyTest.php
- 3.1.x modules/commerce/tests/src/Kernel/Plugin/migrate/source/commerce1/CurrencyTest.php
Same filename and directory in other branches
File
modules/commerce/tests/src/Kernel/Migrate/commerce1/CurrencyTest.phpView 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}
*/
protected static $modules = [
'commerce_price',
'commerce_store',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
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
Name | Description |
---|---|
CurrencyTest | Tests currency migration. |