protected function BlockContentTranslationUITest::setupBundle in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::setupBundle()
- 10 core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php \Drupal\Tests\block_content\Functional\BlockContentTranslationUITest::setupBundle()
Creates or initializes the bundle date if needed.
Overrides ContentTranslationTestBase::setupBundle
File
- core/
modules/ block_content/ tests/ src/ Functional/ BlockContentTranslationUITest.php, line 61
Class
- BlockContentTranslationUITest
- Tests the block content translation UI.
Namespace
Drupal\Tests\block_content\FunctionalCode
protected function setupBundle() {
// Create the basic bundle since it is provided by standard.
$bundle = BlockContentType::create([
'id' => $this->bundle,
'label' => $this->bundle,
'revision' => FALSE,
]);
$bundle
->save();
}