LayoutBuilderAtInstallTest.php in Layout Builder Asymmetric Translation 8.2
File
tests/src/Functional/LayoutBuilderAtInstallTest.php
View source
<?php
namespace Drupal\Tests\layout_builder_at\Functional;
class LayoutBuilderAtInstallTest extends LayoutBuilderAtBase {
public static $modules = [
'content_translation',
'entity_test',
'layout_builder',
'block',
];
protected function setUp() {
parent::setUp();
$this
->setUpViewDisplay();
$this
->setUpEntities();
\Drupal::service('module_installer')
->install([
'layout_builder_at',
]);
$this
->resetAll();
$this
->rebuildContainer();
$this->container
->get('module_handler')
->reload();
}
public function testInstall() {
$assert_session = $this
->assertSession();
$this
->drupalGet('entity_test_mul/structure/entity_test_mul/display/default/layout');
$this
->drupalGet('admin/config/regional/content-language');
$edit = [
'settings[entity_test_mul][entity_test_mul][fields][layout_builder__layout]' => TRUE,
];
$assert_session
->pageTextNotContains('Layout Builder does not support translating layouts.');
$this
->drupalPostForm(NULL, $edit, 'Save configuration');
}
}