You are here

function ContentTmgmtEntitySourceUiTest::setUp in Translation Management Tool 8

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTTestBase::setUp

File

sources/content/tests/src/Functional/ContentTmgmtEntitySourceUiTest.php, line 35

Class

ContentTmgmtEntitySourceUiTest
Content entity source UI tests.

Namespace

Drupal\Tests\tmgmt_content\Functional

Code

function setUp() : void {
  parent::setUp();
  $this
    ->addLanguage('de');
  $this
    ->addLanguage('fr');
  $this
    ->addLanguage('es');
  $this
    ->addLanguage('el');
  $this
    ->addLanguage('it');
  $this
    ->createNodeType('page', 'Page', TRUE);
  $this
    ->createNodeType('article', 'Article', TRUE);
  $this
    ->loginAsAdmin(array(
    'create translation jobs',
    'submit translation jobs',
    'accept translation jobs',
    'administer blocks',
    'administer content translation',
    'edit any article content',
  ));
}