You are here

function ContentEntitySourceContentModerationTest::setUp in Translation Management Tool 8

Same name in this branch
  1. 8 sources/content/tests/src/Functional/ContentEntitySourceContentModerationTest.php \Drupal\Tests\tmgmt_content\Functional\ContentEntitySourceContentModerationTest::setUp()
  2. 8 sources/content/tests/src/Kernel/ContentEntitySourceContentModerationTest.php \Drupal\Tests\tmgmt_content\Kernel\ContentEntitySourceContentModerationTest::setUp()

Overrides DrupalWebTestCase::setUp()

Overrides TMGMTTestBase::setUp

File

sources/content/tests/src/Functional/ContentEntitySourceContentModerationTest.php, line 45

Class

ContentEntitySourceContentModerationTest
Tests content entity source integration with content moderation.

Namespace

Drupal\Tests\tmgmt_content\Functional

Code

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