diff -u b/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php --- b/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -179,7 +179,7 @@ * * @var int */ - protected $metaRefreshCount = 0; + protected $metaRefreshCount; /** * The kernel used in this test. @@ -1221,6 +1221,9 @@ } parent::tearDown(); + // Ensure that the maximum meta refresh count is reset. + $this->maximumMetaRefreshCount = NULL; + // Ensure that internal logged in variable and cURL options are reset. $this->loggedInUser = FALSE; $this->additionalCurlOptions = array(); diff -u b/core/modules/system/src/Tests/Batch/PageTest.php b/core/modules/system/src/Tests/Batch/PageTest.php --- b/core/modules/system/src/Tests/Batch/PageTest.php +++ b/core/modules/system/src/Tests/Batch/PageTest.php @@ -74,7 +74,6 @@ $this->maximumMetaRefreshCount = 1; $this->drupalGet('batch-test/test-title'); $this->assertRaw('
Completed 1 of 1.
', 'Progress message for second step appears correctly.'); - $this->maximumMetaRefreshCount = NULL; } }