Verified Commit 77681bda authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior

parent ec27dec3
Loading
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -18,14 +18,6 @@ class ToolbarActiveTrailTest extends WebDriverTestBase {
   */
  protected static $modules = ['toolbar', 'node', 'field_ui'];

  /**
   * {@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;

  /**
   * {@inheritdoc}
   */
@@ -36,8 +28,13 @@ class ToolbarActiveTrailTest extends WebDriverTestBase {
   */
  protected function setUp(): void {
    parent::setUp();
    $this->drupalLogin($this->rootUser);
    $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']);
    $this->drupalLogin($this->drupalCreateUser([
      'access administration pages',
      'administer content types',
      'administer node fields',
      'access toolbar',
    ]));
  }

  /**