You are here

protected function CurrentCurrencyTrait::resetCurrencyContainer in Commerce Currency Resolver 8

Reset current currency container.

3 calls to CurrentCurrencyTrait::resetCurrencyContainer()
CurrentCurrencyCartTest::testProductAddToCartForm in tests/src/Functional/CurrentCurrencyCartTest.php
Test adding a product to the cart.
CurrentCurrencyTest::testLanguage in tests/src/Kernel/CurrentCurrencyTest.php
Tests language based current currency.
CurrentCurrencyTest::testNoStore in tests/src/Kernel/CurrentCurrencyTest.php
Tests current currency with no store.

File

tests/src/Traits/CurrentCurrencyTrait.php, line 13

Class

CurrentCurrencyTrait
Trait CurrentCurrencyTrait.

Namespace

Drupal\Tests\commerce_currency_resolver\Traits

Code

protected function resetCurrencyContainer() {
  $this->container = $this->container
    ->get('kernel')
    ->rebuildContainer();
  $this->currentCurrency = $this->container
    ->get('commerce_currency_resolver.current_currency');
}