You are here

protected function CommerceExchangerTest::setUp in Commerce Exchanger 8

Overrides CommerceWebDriverTestBase::setUp

File

tests/src/FunctionalJavascript/CommerceExchangerTest.php, line 53

Class

CommerceExchangerTest
Tests the commerce exchanger UI.

Namespace

Drupal\Tests\commerce_exchanger\FunctionalJavascript

Code

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

  // Add additional currency.
  // The parent has already imported USD.
  $currency_importer = $this->container
    ->get('commerce_price.currency_importer');
  $currency_importer
    ->import('HRK');
  $this->priceHrk = new Price('100', 'HRK');
  $this->priceUsd = new Price('100', 'USD');
}