function TMGMTCartTest::setUp in Translation Management Tool 8
Overrides DrupalWebTestCase::setUp()
Overrides TMGMTTestBase::setUp
File
- tests/src/ Functional/ TMGMTCartTest.php, line 19 
Class
- TMGMTCartTest
- Verifies basic functionality of the user interface
Namespace
Drupal\Tests\tmgmt\FunctionalCode
function setUp() : void {
  parent::setUp();
  // Login as admin to be able to set environment variables.
  $this
    ->loginAsAdmin();
  $this
    ->addLanguage('es');
  $this
    ->addLanguage('sk');
  $this
    ->addLanguage('cs');
  // Login as translator only with limited permissions to run these tests.
  $this
    ->loginAsTranslator(array(
    'access administration pages',
    'create translation jobs',
    'submit translation jobs',
  ), TRUE);
}