function TranslatorTest::setUp in Translation Management Tool 8
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTTestBase::setUp
File
- tests/
src/ Functional/ TranslatorTest.php, line 18
Class
- TranslatorTest
- Verifies functionality of translator handling
Namespace
Drupal\Tests\tmgmt\FunctionalCode
function setUp() : void {
parent::setUp();
// Login as admin to be able to set environment variables.
$this
->loginAsAdmin();
$this
->addLanguage('de');
$this
->addLanguage('es');
$this
->addLanguage('el');
// Login as translation administrator to run these tests.
$this
->loginAsTranslator(array(
'administer tmgmt',
), TRUE);
}