function ContentTranslationPendingRevisionTestBase::setUp
Same name in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationPendingRevisionTestBase::setUp()
- 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationPendingRevisionTestBase::setUp()
- 10 core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationPendingRevisionTestBase::setUp()
Overrides BrowserTestBase::setUp
4 calls to ContentTranslationPendingRevisionTestBase::setUp()
- ContentTranslationNewTranslationWithExistingRevisionsTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationNewTranslationWithExistingRevisionsTest.php - 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
4 methods override ContentTranslationPendingRevisionTestBase::setUp()
- ContentTranslationNewTranslationWithExistingRevisionsTest::setUp in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationNewTranslationWithExistingRevisionsTest.php - 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 53
Class
- ContentTranslationPendingRevisionTestBase
- Base class for pending revision translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function setUp() : void {
$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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.