Loading core/modules/layout_builder/tests/src/Functional/LayoutBuilderOverridesTest.php +3 −11 Original line number Diff line number Diff line Loading @@ -15,14 +15,6 @@ */ class LayoutBuilderOverridesTest extends LayoutBuilderTestBase { /** * {@inheritdoc} * * @todo Remove and fix test to not rely on super user. * @see https://www.drupal.org/project/drupal/issues/3437620 */ protected bool $usesSuperUserAccessPolicy = TRUE; /** * Tests deleting a field in-use by an overridden layout. */ Loading Loading @@ -85,9 +77,9 @@ public function testOverridesWithoutFieldUi() { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); // @todo In https://www.drupal.org/node/540008 switch this to logging in as // a user with the 'configure any layout' permission. $this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([ 'configure any layout', ])); LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default') ->enableLayoutBuilder() Loading Loading
core/modules/layout_builder/tests/src/Functional/LayoutBuilderOverridesTest.php +3 −11 Original line number Diff line number Diff line Loading @@ -15,14 +15,6 @@ */ class LayoutBuilderOverridesTest extends LayoutBuilderTestBase { /** * {@inheritdoc} * * @todo Remove and fix test to not rely on super user. * @see https://www.drupal.org/project/drupal/issues/3437620 */ protected bool $usesSuperUserAccessPolicy = TRUE; /** * Tests deleting a field in-use by an overridden layout. */ Loading Loading @@ -85,9 +77,9 @@ public function testOverridesWithoutFieldUi() { $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); // @todo In https://www.drupal.org/node/540008 switch this to logging in as // a user with the 'configure any layout' permission. $this->drupalLogin($this->rootUser); $this->drupalLogin($this->drupalCreateUser([ 'configure any layout', ])); LayoutBuilderEntityViewDisplay::load('node.bundle_with_section_field.default') ->enableLayoutBuilder() Loading