CurrencyTest.php in Commerce Migrate 8.2
Same filename in this branch
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/CurrencyTest.php
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/CurrencyTest.php
- 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/CurrencyTest.php
- 8.2 modules/ubercart/tests/src/Kernel/Plugin/migrate/source/CurrencyTest.php
- 8.2 modules/commerce/tests/src/Kernel/Plugin/migrate/source/commerce1/CurrencyTest.php
Same filename and directory in other branches
File
modules/ubercart/tests/src/Kernel/Migrate/uc7/CurrencyTest.phpView source
<?php
namespace Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;
/**
* Tests currency migration.
*
* @group commerce_migrate
* @group commerce_migrate_uc7
*/
class CurrencyTest extends Ubercart7TestBase {
use CommerceMigrateTestTrait;
/**
* {@inheritdoc}
*/
public static $modules = [
'commerce_price',
];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this
->executeMigration('uc_currency');
}
/**
* Test currency migration.
*/
public function testCurrency() {
$this
->assertCurrencyEntity('USD', 'USD', 'US Dollar', '840', 2, '$');
}
}
Classes
Name | Description |
---|---|
CurrencyTest | Tests currency migration. |