You are here

protected function CurrencyRepositoryTest::setUp in Commerce Core 8.2

Overrides CommerceKernelTestBase::setUp

File

modules/price/tests/src/Kernel/CurrencyRepositoryTest.php, line 27

Class

CurrencyRepositoryTest
Tests the currency repository.

Namespace

Drupal\Tests\commerce_price\Kernel

Code

protected function setUp() : void {
  parent::setUp();

  // The parent has already imported USD.
  $currency_importer = $this->container
    ->get('commerce_price.currency_importer');
  $currency_importer
    ->import('EUR');
  $this->currencyRepository = $this->container
    ->get('commerce_price.currency_repository');
}