function LayoutBuilderQuickEditTest::loginLayoutAdmin

Same name in other branches
  1. 9 core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php \Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::loginLayoutAdmin()

Login the Layout admin user for the test.

5 calls to LayoutBuilderQuickEditTest::loginLayoutAdmin()
LayoutBuilderQuickEditTest::createLayoutOverride in core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Creates a layout override.
LayoutBuilderQuickEditTest::disableLayoutBuilder in core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Disables Layout Builder.
LayoutBuilderQuickEditTest::enableLayouts in core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Enables layouts at an admin path.
LayoutBuilderQuickEditTest::revertLayoutToDefaults in core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Reverts a layout override.
LayoutBuilderQuickEditTest::testQuickEditIgnoresDuplicateFields in core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php
Tests that Quick Edit still works even when there are duplicate fields.

File

core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php, line 251

Class

LayoutBuilderQuickEditTest
Tests that Layout Builder functions with Quick Edit.

Namespace

Drupal\Tests\layout_builder\FunctionalJavascript

Code

protected function loginLayoutAdmin() {
    // Enable for the Layout Builder.
    $this->drupalLogin($this->drupalCreateUser([
        'configure any layout',
        'access content',
        'administer node display',
        'administer node fields',
        'administer blocks',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.