Verified Commit 5cd7e9c3 authored by Dave Long's avatar Dave Long
Browse files

test: #3611749 Remove toolbar from tests where it is not needed

By: quietone
parent a8ea302a
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ final class AnnouncementsCacheTest extends BrowserTestBase {
    'announcements_feed',
    'dynamic_page_cache',
    'node',
    'toolbar',
  ];

  /**
@@ -38,14 +37,12 @@ public function testDynamicPageCache(): void {
    $node_type = $this->drupalCreateContentType();
    $node = $this->drupalCreateNode(['type' => $node_type->id()]);
    $this->drupalLogin($this->drupalCreateUser([
      'access toolbar',
      'access announcements',
    ]));
    $this->drupalGet($node->toUrl());
    $this->assertSession()->responseHeaderEquals(DynamicPageCacheSubscriber::HEADER, 'MISS');
    // Reload the page, it should be cached now.
    $this->drupalGet($node->toUrl());
    $this->assertSession()->elementExists('css', '[data-drupal-announce-trigger]');
    $this->assertSession()->responseHeaderEquals(DynamicPageCacheSubscriber::HEADER, 'HIT');
  }

+0 −9
Original line number Diff line number Diff line
@@ -21,13 +21,6 @@ class AnnounceFetcherUserTest extends AnnounceTestBase {

  use UserCreationTrait;

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'toolbar',
  ];

  /**
   * Version constraint.
   */
@@ -42,7 +35,6 @@ protected function setUp(): void {

    // Setting current user.
    $permissions = [
      'access toolbar',
      'access announcements',
    ];
    $this->setUpCurrentUser(['uid' => 1], $permissions);
@@ -74,7 +66,6 @@ public function testAllAnnouncementsFirst(): void {

    // Create another user and test again.
    $permissions = [
      'access toolbar',
      'access announcements',
    ];
    $this->setUpCurrentUser(['uid' => 2], $permissions);
+0 −1
Original line number Diff line number Diff line
@@ -38,7 +38,6 @@ class ConfigTranslationListUiTest extends BrowserTestBase {
    'taxonomy',
    'image',
    'responsive_image',
    'toolbar',
  ];

  /**
+0 −1
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@ class ConfigTranslationListUiTest extends BrowserTestBase {
    'block',
    'config_translation',
    'shortcut',
    'toolbar',
  ];

  /**
+0 −1
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@ class ShortcutCacheTagsTest extends KernelTestBase {
  protected static $modules = [
    'system',
    'user',
    'toolbar',
    'shortcut',
    'link',
  ];
Loading