public function LayoutBuilderTest::testLayoutBuilder in Scheduler content moderation integration 8
Tests layout builder.
File
- tests/
src/ Functional/ LayoutBuilderTest.php, line 66
Class
- LayoutBuilderTest
- Test if layout builder can be accessed.
Namespace
Drupal\Tests\scheduler_content_moderation_integration\FunctionalCode
public function testLayoutBuilder() {
$path = 'admin/structure/types/manage/article/display/default';
$page = $this
->getSession()
->getPage();
$this
->drupalGet($path);
$page
->checkField('layout[enabled]');
$page
->pressButton('Save');
$this
->drupalGet(Url::fromRoute('layout_builder.defaults.node.view', [
'node_type' => 'article',
'view_mode_name' => 'default',
]));
$this
->assertSession()
->statusCodeEquals(200);
}