LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php in Lingotek Translation 3.6.x
Same filename and directory in other branches
- 4.0.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php
- 3.5.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php
- 3.7.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php
- 3.8.x tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.php
Namespace
Drupal\Tests\lingotek\FunctionalFile
tests/src/Functional/LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest.phpView source
<?php
namespace Drupal\Tests\lingotek\Functional;
use Drupal\block_content\Entity\BlockContentType;
use Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait;
/**
* Tests translating a node with layout builder AT and revisionable blocks.
*
* @group lingotek
* @group legacy
*/
class LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest extends LingotekNodeLayoutBuilderAsymmetricTranslationTest {
use ContentModerationTestTrait;
/**
* {@inheritdoc}
*/
public static $modules = [
'block',
'block_content',
'content_moderation',
'node',
'layout_builder',
'layout_builder_at',
];
/**
* {@inheritdoc}
*/
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();
}
}
Classes
Name | Description |
---|---|
LingotekNodeLayoutBuilderWithRevisionableBlockAsymmetricTranslationTest | Tests translating a node with layout builder AT and revisionable blocks. |