Verified Commit 0b3e6f1a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3439893 by thebumik, vensires: Fix Layout Builder tests that rely on...

Issue #3439893 by thebumik, vensires: Fix Layout Builder tests that rely on UID1's super user behavior
parent 09748605
Loading
Loading
Loading
Loading
+3 −11
Original line number Diff line number Diff line
@@ -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.
   */
@@ -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()