From ed11f4f853cd8f91157cda6092595b3bde32b7da Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sat, 2 May 2020 13:05:08 +0100
Subject: [PATCH] Issue #2978398 by ilya.no, mcdruid, iyyappan.govind, aleevas,
 quietone, joachim, tvb, alexpott, catch: UserPasswordResetTest extends
 PageCacheTagsTestBase unecessarily

---
 .../user/tests/src/Functional/UserPasswordResetTest.php   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
index e59194f54917..19de5960e7a8 100644
--- a/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
+++ b/core/modules/user/tests/src/Functional/UserPasswordResetTest.php
@@ -6,7 +6,7 @@
 use Drupal\Core\Database\Database;
 use Drupal\Core\Test\AssertMailTrait;
 use Drupal\Core\Url;
-use Drupal\Tests\system\Functional\Cache\PageCacheTagsTestBase;
+use Drupal\Tests\BrowserTestBase;
 use Drupal\user\Entity\User;
 
 /**
@@ -14,7 +14,7 @@
  *
  * @group user
  */
-class UserPasswordResetTest extends PageCacheTagsTestBase {
+class UserPasswordResetTest extends BrowserTestBase {
 
   use AssertMailTrait {
     getMails as drupalGetMails;
@@ -45,6 +45,10 @@ class UserPasswordResetTest extends PageCacheTagsTestBase {
   protected function setUp(): void {
     parent::setUp();
 
+    // Enable page caching.
+    $config = $this->config('system.performance');
+    $config->set('cache.page.max_age', 3600);
+    $config->save();
     $this->drupalPlaceBlock('system_menu_block:account');
 
     // Create a user.
-- 
GitLab