You are here

protected function BambooTwigExtensionsI18nTest::setUpLanguages in Bamboo Twig 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Functional/BambooTwigExtensionsI18nTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigExtensionsI18nTest::setUpLanguages()
  2. 8.3 tests/src/Functional/BambooTwigExtensionsI18nTest.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigExtensionsI18nTest::setUpLanguages()

Sets up languages needed for test.

Overrides BambooTwigTestBase::setUpLanguages

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

File

tests/src/Functional/BambooTwigExtensionsI18nTest.php, line 44

Class

BambooTwigExtensionsI18nTest
Tests Extensions i18n of 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();
}