You are here

public function CommerceMulticurrencyTestCase::setUp in Commerce Multicurrency 7

Setup.

Overrides DrupalWebTestCase::setUp

File

tests/commerce_multicurrency.test, line 33
Tests for the commerce currency module.

Class

CommerceMulticurrencyTestCase
Tests for the commerce currency module.

Code

public function setUp() {
  $modules = func_get_args();
  $modules = isset($modules[0]) ? $modules[0] : $modules;
  $modules[] = 'rules';
  $modules[] = 'commerce';
  $modules[] = 'commerce_ui';
  $modules[] = 'commerce_price';
  $modules[] = 'commerce_multicurrency';
  parent::setUp($modules);

  // Enable currencies.
  variable_set('commerce_enabled_currencies', array(
    commerce_default_currency() => commerce_default_currency(),
    'CHF' => 'CHF',
    'EUR' => 'EUR',
  ));

  // Ensure the static currencies cache is reset.
  commerce_currencies(TRUE, TRUE);
}