protected function BambooTwigTestBase::setUpLanguages in Bamboo Twig 8.4
Same name and namespace in other branches
- 8.5 tests/src/Functional/BambooTwigTestBase.php \Drupal\Tests\bamboo_twig\Functional\BambooTwigTestBase::setUpLanguages()
Sets up languages needed for test.
4 calls to BambooTwigTestBase::setUpLanguages()
- BambooTwigI18nTest::setUp in tests/
src/ Functional/ BambooTwigI18nTest.php - BambooTwigLoaderTest::setUp in tests/
src/ Functional/ BambooTwigLoaderTest.php - BambooTwigRenderTest::setUp in tests/
src/ Functional/ BambooTwigRenderTest.php - BambooTwigTokenTest::setUp in tests/
src/ Functional/ BambooTwigTokenTest.php
1 method overrides BambooTwigTestBase::setUpLanguages()
- BambooTwigExtensionsI18nTest::setUpLanguages in tests/
src/ Functional/ BambooTwigExtensionsI18nTest.php - Sets up languages needed for test.
File
- tests/
src/ Functional/ BambooTwigTestBase.php, line 57
Class
- BambooTwigTestBase
- Has some additional helper methods to make test code more readable.
Namespace
Drupal\Tests\bamboo_twig\FunctionalCode
protected function setUpLanguages() {
// English (en) is created by default.
ConfigurableLanguage::createFromLangcode('fr')
->save();
ConfigurableLanguage::createFromLangcode('de')
->save();
}