You are here

protected function TranslationStringTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php \Drupal\KernelTests\Core\StringTranslation\TranslationStringTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/StringTranslation/TranslationStringTest.php, line 33
Contains \Drupal\KernelTests\Core\StringTranslation\TranslationStringTest.

Class

TranslationStringTest
Tests the TranslatableMarkup class.

Namespace

Drupal\KernelTests\Core\StringTranslation

Code

protected function setUp() {
  parent::setUp();
  ConfigurableLanguage::createFromLangcode('de')
    ->save();
}