protected function LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
- 3.5.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
- 3.7.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
- 3.8.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
Overrides LingotekNodeLayoutBuilderAsymmetricTranslationTest::setUp
File
- tests/
src/ Functional/ LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php, line 33
Class
- LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest
- Tests translating a node with layout builder AT and revisionable blocks.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function setUp() : void {
parent::setUp();
/** @var \Drupal\block_content\Entity\BlockContentType $bundle */
$bundle = BlockContentType::load('custom_content_block');
$bundle
->set('revision', TRUE);
$bundle
->save();
}