You are here

class CurrentCurrencyTest in Commerce Currency Resolver 8

Same name in this branch
  1. 8 tests/src/Kernel/CurrentCurrencyTest.php \Drupal\Tests\commerce_currency_resolver\Kernel\CurrentCurrencyTest
  2. 8 tests/modules/commerce_currency_resolver_test/src/CurrentCurrencyTest.php \Drupal\commerce_currency_resolver_test\CurrentCurrencyTest

Holds a reference to the currency, resolved on demand.

Hierarchy

Expanded class hierarchy of CurrentCurrencyTest

File

tests/modules/commerce_currency_resolver_test/src/CurrentCurrencyTest.php, line 10

Namespace

Drupal\commerce_currency_resolver_test
View source
class CurrentCurrencyTest extends CurrentCurrency {

  /**
   * {@inheritdoc}
   */
  public function getCurrency() {
    return 'VUV';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CurrentCurrency::$currency protected property Static cache of resolved currency. One per request.
CurrentCurrency::$currencyHelper protected property Helper service.
CurrentCurrency::$requestStack protected property The request stack.
CurrentCurrency::__construct public function
CurrentCurrencyTest::getCurrency public function Gets the resolved currency for the current request. Overrides CurrentCurrency::getCurrency