You are here

function TMGMTUiContinuousTest::setUp in Translation Management Tool 8

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTTestBase::setUp

File

tests/src/Functional/TMGMTUiContinuousTest.php, line 23

Class

TMGMTUiContinuousTest
Verifies continuous functionality of the user interface

Namespace

Drupal\Tests\tmgmt\Functional

Code

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);
}