function TMGMTKernelTestBase::setUp in Translation Management Tool 8
Overrides KernelTestBase::setUp
6 calls to TMGMTKernelTestBase::setUp()
- ConfigSourceUnitTest::setUp in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceUnitTest.php - ConfigSourceWebformTest::setUp in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceWebformTest.php - ContentEntitySuggestionsTest::setUp in sources/
content/ tests/ src/ Kernel/ ContentEntitySuggestionsTest.php - CrudTest::setUp in tests/
src/ Kernel/ CrudTest.php - LocaleSourceTest::setUp in sources/
locale/ tests/ src/ Kernel/ LocaleSourceTest.php
6 methods override TMGMTKernelTestBase::setUp()
- ConfigSourceUnitTest::setUp in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceUnitTest.php - ConfigSourceWebformTest::setUp in sources/
tmgmt_config/ tests/ src/ Kernel/ ConfigSourceWebformTest.php - ContentEntitySuggestionsTest::setUp in sources/
content/ tests/ src/ Kernel/ ContentEntitySuggestionsTest.php - CrudTest::setUp in tests/
src/ Kernel/ CrudTest.php - LocaleSourceTest::setUp in sources/
locale/ tests/ src/ Kernel/ LocaleSourceTest.php
File
- tests/
src/ Kernel/ TMGMTKernelTestBase.php, line 32
Class
- TMGMTKernelTestBase
- Base class for tests.
Namespace
Drupal\Tests\tmgmt\KernelCode
function setUp() : void {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('tmgmt_job');
$this
->installEntitySchema('tmgmt_job_item');
$this
->installEntitySchema('tmgmt_message');
$this->default_translator = Translator::create([
'name' => 'test_translator',
'plugin' => 'test_translator',
'remote_languages_mappings' => [],
]);
$this->default_translator
->save();
$this
->addLanguage('de');
}