diff --git a/currency/src/Tests/Controller/CurrencyLocaleWebTest.php b/currency/src/Tests/Controller/CurrencyLocaleWebTest.php index 4bd979b..bc070e7 100644 --- a/currency/src/Tests/Controller/CurrencyLocaleWebTest.php +++ b/currency/src/Tests/Controller/CurrencyLocaleWebTest.php @@ -19,6 +19,17 @@ class CurrencyLocaleWebTest extends WebTestBase { public static $modules = array('currency'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrencyLocale('nl_NL'); + $config_importer->importCurrencyLocale('aa_DJ'); + } + + /** * Tests the user interface. */ function testUserInterface() { diff --git a/currency/src/Tests/Controller/CurrencyWebTest.php b/currency/src/Tests/Controller/CurrencyWebTest.php index 8cfe208..ffdc313 100644 --- a/currency/src/Tests/Controller/CurrencyWebTest.php +++ b/currency/src/Tests/Controller/CurrencyWebTest.php @@ -19,6 +19,17 @@ class CurrencyWebTest extends WebTestBase { public static $modules = array('currency'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrency('AFN'); + $config_importer->importCurrency('EUR'); + } + + /** * Tests the user interface. */ function testUserInterface() { diff --git a/currency/src/Tests/Element/CurrencyAmountWebTest.php b/currency/src/Tests/Element/CurrencyAmountWebTest.php index 292212f..4ceb265 100644 --- a/currency/src/Tests/Element/CurrencyAmountWebTest.php +++ b/currency/src/Tests/Element/CurrencyAmountWebTest.php @@ -19,6 +19,16 @@ class CurrencyAmountWebTest extends WebTestBase { public static $modules = array('currency_test'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrency('EUR'); + } + + /** * Test validation. */ function testValidation() { diff --git a/currency/src/Tests/Element/CurrencySignWebTest.php b/currency/src/Tests/Element/CurrencySignWebTest.php index aeabc4c..b7fd627 100644 --- a/currency/src/Tests/Element/CurrencySignWebTest.php +++ b/currency/src/Tests/Element/CurrencySignWebTest.php @@ -20,6 +20,16 @@ class CurrencySignWebTest extends WebTestBase { public static $modules = array('currency_test'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrency('EUR'); + } + + /** * Test validation. */ function testValidation() { diff --git a/currency/src/Tests/Entity/Currency/CurrencyFormWebTest.php b/currency/src/Tests/Entity/Currency/CurrencyFormWebTest.php index e91daf1..7fe7822 100644 --- a/currency/src/Tests/Entity/Currency/CurrencyFormWebTest.php +++ b/currency/src/Tests/Entity/Currency/CurrencyFormWebTest.php @@ -20,6 +20,16 @@ class CurrencyFormWebTest extends WebTestBase { public static $modules = array('currency'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrency('EUR'); + } + + /** * Test Currency's UI. */ function testUI() { diff --git a/currency/src/Tests/Plugin/views/field/AmountWebTest.php b/currency/src/Tests/Plugin/views/field/AmountWebTest.php index 631a137..1034500 100644 --- a/currency/src/Tests/Plugin/views/field/AmountWebTest.php +++ b/currency/src/Tests/Plugin/views/field/AmountWebTest.php @@ -22,6 +22,18 @@ class AmountWebTest extends WebTestBase { public static $modules = array('currency_test', 'views_ui'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrency('EUR'); + $config_importer->importCurrency('UAH'); + $config_importer->importCurrency('USD'); + } + + /** * Tests the handler. */ public function testHandler() { diff --git a/currency/src/Tests/Plugin/views/field/CurrencyWebTest.php b/currency/src/Tests/Plugin/views/field/CurrencyWebTest.php index 5188b22..1a8ca6d 100644 --- a/currency/src/Tests/Plugin/views/field/CurrencyWebTest.php +++ b/currency/src/Tests/Plugin/views/field/CurrencyWebTest.php @@ -19,6 +19,16 @@ class CurrencyWebTest extends WebTestBase { public static $modules = array('currency_test', 'views'); /** + * {@inheritdoc} + */ + public function setUp() { + parent::setUp(); + /** @var \Drupal\currency\ConfigImporterInterface $config_importer */ + $config_importer = \Drupal::service('currency.config_importer'); + $config_importer->importCurrency('EUR'); + } + + /** * Tests the handler. */ public function testHandler() {