You are here

protected function LocaleTranslationProjectsTest::setUp in Drupal 9

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

Overrides KernelTestBase::setUp

File

core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php, line 36

Class

LocaleTranslationProjectsTest
Tests locale translation project handling.

Namespace

Drupal\Tests\locale\Kernel

Code

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