protected function LayoutBuilderQuickEditTest::loginLayoutAdmin in Drupal 9
Login the Layout admin user for the test.
5 calls to LayoutBuilderQuickEditTest::loginLayoutAdmin()
- LayoutBuilderQuickEditTest::createLayoutOverride in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php - Creates a layout override.
- LayoutBuilderQuickEditTest::disableLayoutBuilder in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php - Disables Layout Builder.
- LayoutBuilderQuickEditTest::enableLayouts in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php - Enables layouts at an admin path.
- LayoutBuilderQuickEditTest::revertLayoutToDefaults in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php - Reverts a layout override.
- LayoutBuilderQuickEditTest::testQuickEditIgnoresDuplicateFields in core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php - Tests that Quick Edit still works even when there are duplicate fields.
File
- core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ LayoutBuilderQuickEditTest.php, line 236
Class
- LayoutBuilderQuickEditTest
- Tests that Layout Builder functions with Quick Edit.
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
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',
]));
}