function ContentTranslationTestBase::setupBundle
Same name in other branches
- 9 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()
- 8.9.x core/modules/content_translation/src/Tests/ContentTranslationTestBase.php \Drupal\content_translation\Tests\ContentTranslationTestBase::setupBundle()
- 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()
- 10 core/modules/content_translation/tests/src/Functional/ContentTranslationTestBase.php \Drupal\Tests\content_translation\Functional\ContentTranslationTestBase::setupBundle()
Creates or initializes the bundle date if needed.
5 calls to ContentTranslationTestBase::setupBundle()
- CommentTranslationUITest::setupBundle in core/
modules/ comment/ tests/ src/ Functional/ CommentTranslationUITest.php - Creates or initializes the bundle date if needed.
- ContentTranslationMetadataFieldsTest::setupBundle in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationMetadataFieldsTest.php - Creates or initializes the bundle date if needed.
- ContentTranslationPendingRevisionTestBase::setupBundle in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationPendingRevisionTestBase.php - Creates or initializes the bundle date if needed.
- ContentTranslationTestBase::doSetup in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php - Completes preparation for content translation tests.
- TermTranslationUITest::setupBundle in core/
modules/ taxonomy/ tests/ src/ Functional/ TermTranslationUITest.php - Creates or initializes the bundle date if needed.
6 methods override ContentTranslationTestBase::setupBundle()
- BlockContentTranslationUITest::setupBundle in core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTranslationUITest.php - Creates or initializes the bundle date if needed.
- CommentTranslationUITest::setupBundle in core/
modules/ comment/ tests/ src/ Functional/ CommentTranslationUITest.php - Creates or initializes the bundle date if needed.
- ContentTranslationMetadataFieldsTest::setupBundle in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationMetadataFieldsTest.php - Creates or initializes the bundle date if needed.
- ContentTranslationPendingRevisionTestBase::setupBundle in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationPendingRevisionTestBase.php - Creates or initializes the bundle date if needed.
- MediaTranslationUITest::setupBundle in core/
modules/ media/ tests/ src/ Functional/ MediaTranslationUITest.php - Creates or initializes the bundle date if needed.
File
-
core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationTestBase.php, line 159
Class
- ContentTranslationTestBase
- Base class for content translation tests.
Namespace
Drupal\Tests\content_translation\FunctionalCode
protected function setupBundle() {
if (empty($this->bundle)) {
$this->bundle = $this->entityTypeId;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.