You are here

protected function ContentTranslationPendingRevisionTestBase::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationPendingRevisionTestBase::setUp()

Overrides ContentTranslationTestBase::setUp

3 calls to ContentTranslationPendingRevisionTestBase::setUp()
ContentTranslationOutdatedRevisionTranslationTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php
ContentTranslationRevisionTranslationDeletionTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php
ContentTranslationUntranslatableFieldsTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php
3 methods override ContentTranslationPendingRevisionTestBase::setUp()
ContentTranslationOutdatedRevisionTranslationTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationOutdatedRevisionTranslationTest.php
ContentTranslationRevisionTranslationDeletionTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationRevisionTranslationDeletionTest.php
ContentTranslationUntranslatableFieldsTest::setUp in core/modules/content_translation/tests/src/Functional/ContentTranslationUntranslatableFieldsTest.php

File

core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php, line 51

Class

ContentTranslationPendingRevisionTestBase
Base class for pending revision translation tests.

Namespace

Drupal\Tests\content_translation\Functional

Code

protected function setUp() {
  $this->entityTypeId = 'node';
  $this->bundle = 'article';
  $this->commonPermissions = [
    'view any unpublished content',
    "translate {$this->bundle} {$this->entityTypeId}",
    "create content translations",
    'use editorial transition create_new_draft',
    'use editorial transition publish',
    'use editorial transition archive',
    'use editorial transition archived_draft',
    'use editorial transition archived_published',
  ];
  parent::setUp();

  /** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
  $entity_type_manager = $this->container
    ->get('entity_type.manager');
  $this->storage = $entity_type_manager
    ->getStorage($this->entityTypeId);

  // @todo Remove this line once https://www.drupal.org/node/2945928 is fixed.
  $this
    ->config('node.settings')
    ->set('use_admin_theme', '1')
    ->save();
}