function TermTranslationViewsTest::setUp

Same name in other branches
  1. 10 core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php \Drupal\Tests\taxonomy\Functional\Views\TermTranslationViewsTest::setUp()

Overrides TaxonomyTestBase::setUp

File

core/modules/taxonomy/tests/src/Functional/Views/TermTranslationViewsTest.php, line 64

Class

TermTranslationViewsTest
Tests for views translation.

Namespace

Drupal\Tests\taxonomy\Functional\Views

Code

protected function setUp($import_test_views = TRUE, $modules = []) : void {
    parent::setUp($import_test_views, $modules);
    $this->setupLanguages();
    $this->enableTranslation();
    $this->setUpTerms();
    $this->translationLanguage = \Drupal::languageManager()->getLanguage($this->translateToLangcode);
}

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