You are here

protected function LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
  2. 3.5.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
  3. 3.7.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest::setUp()
  4. 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\Functional

Code

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();
}