function LocaleTranslationProjectsTest::setUp
Same name in other branches
- 8.9.x core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php \Drupal\Tests\locale\Kernel\LocaleTranslationProjectsTest::setUp()
- 10 core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php \Drupal\Tests\locale\Kernel\LocaleTranslationProjectsTest::setUp()
- 11.x 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\KernelCode
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.