You are here

protected function LocaleTranslationProjectsTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/locale/src/Tests/LocaleTranslationProjectsTest.php \Drupal\locale\Tests\LocaleTranslationProjectsTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides KernelTestBase::setUp

File

core/modules/locale/src/Tests/LocaleTranslationProjectsTest.php, line 41
Contains \Drupal\locale\Tests\LocaleTranslationProjectsTest.

Class

LocaleTranslationProjectsTest
Tests locale translation project handling.

Namespace

Drupal\locale\Tests

Code

protected function setUp() {
  parent::setUp();
  $this->moduleHandler = $this->container
    ->get('module_handler');
  $this->projectStorage = $this->container
    ->get('locale.project');
  \Drupal::state()
    ->set('locale.remove_core_project', TRUE);
}