You are here

protected function BambooTwigI18nTest::setUpLanguages in Bamboo Twig 8.3

Sets up languages needed for test.

1 call to BambooTwigI18nTest::setUpLanguages()
BambooTwigI18nTest::setUp in tests/src/Functional/BambooTwigI18nTest.php

File

tests/src/Functional/BambooTwigI18nTest.php, line 60

Class

BambooTwigI18nTest
Tests I18n twig filters and functions.

Namespace

Drupal\Tests\bamboo_twig\Functional

Code

protected function setUpLanguages() {

  // English (en) is created by default.
  ConfigurableLanguage::createFromLangcode('fr')
    ->save();
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
}