Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / src / Functional / Batch / PageTest.php
index 9b1d4dd4ad80a5df3332049f4fda85cd366194e8..b1e46a2ea5fb8a23da871f5ca9e0e426e35d4af3 100644 (file)
@@ -50,7 +50,15 @@ class PageTest extends BrowserTestBase {
     // Visit an administrative page that runs a test batch, and check that the
     // title shown during batch execution (which the batch callback function
     // saved as a variable) matches the theme used on the administrative page.
+    // Run initial step only first.
+    $this->maximumMetaRefreshCount = 0;
+    $this->drupalGet('batch-test/test-title');
+    $this->assertText('Batch Test', 'The test is in the html output.');
+
+    // Leave the batch process running.
+    $this->maximumMetaRefreshCount = NULL;
     $this->drupalGet('batch-test/test-title');
+
     // The stack should contain the title shown on the progress page.
     $this->assertEqual(batch_test_stack(), ['Batch Test'], 'The batch title is shown on the batch page.');
     $this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');