only in patch2: unchanged: --- a/core/modules/user/src/Tests/UserPasswordResetTest.php +++ b/core/modules/user/src/Tests/UserPasswordResetTest.php @@ -7,7 +7,8 @@ namespace Drupal\user\Tests; -use Drupal\simpletest\WebTestBase; +use Drupal\Core\Url; +use Drupal\system\Tests\Cache\PageCacheTagsTestBase; use Drupal\user\Entity\User; /** @@ -15,7 +16,7 @@ * * @group user */ -class UserPasswordResetTest extends WebTestBase { +class UserPasswordResetTest extends PageCacheTagsTestBase { /** * The profile to install as a basis for testing. @@ -69,6 +70,19 @@ protected function setUp() { } /** + * Tests the reset password page caching. + */ + function testUserPasswordResetCaching() { + $url = Url::fromRoute('user.pass'); + + // Prime the page cache. + $this->verifyPageCache($url, 'MISS'); + + // Verify the page is not cached.. + $this->verifyPageCache($url, 'MISS'); + } + + /** * Tests password reset functionality. */ function testUserPasswordReset() {