function TranslationManagerTest::setUp

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TranslationManagerTest::setUp()
  2. 9 core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TranslationManagerTest::setUp()
  3. 8.9.x core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php \Drupal\Tests\Core\StringTranslation\TranslationManagerTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/StringTranslation/TranslationManagerTest.php, line 31

Class

TranslationManagerTest
Tests Drupal\Core\StringTranslation\TranslationManager.

Namespace

Drupal\Tests\Core\StringTranslation

Code

protected function setUp() : void {
  parent::setUp();
  $this->translationManager = new TestTranslationManager();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.