function TmgmtContinuousJavascriptTest::setUp in Translation Management Tool 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ TmgmtContinuousJavascriptTest.php, line 41
Class
- TmgmtContinuousJavascriptTest
- Verifies functionality of translator handling.
Namespace
Drupal\Tests\tmgmt\FunctionalJavascriptCode
function setUp() : void {
parent::setUp();
// Login as admin to be able to set environment variables.
$this
->loginAsAdmin([
'translate any entity',
'create content translations',
]);
$this
->addLanguage('de');
$this
->addLanguage('es');
$this
->drupalPlaceBlock('system_breadcrumb_block');
$this
->createNodeType('page', 'Page', TRUE);
$this
->createNodeType('article', 'Article', TRUE);
}