From ffdbfa52fe1f09d88ba448bec588dea5f0a737b6 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sun, 20 Feb 2022 10:32:22 +0000
Subject: [PATCH] Issue #3265376 by xjm: Fix UpdateScriptTest when
 MINIMUM_SUPPORTED_PHP is used

(cherry picked from commit 3f55b8268f2cfe4c5c0c495805e3d9209a8d8643)
---
 .../tests/src/Functional/UpdateSystem/UpdateScriptTest.php      | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
index f57a0b779a32..5e1088e09433 100644
--- a/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
+++ b/core/modules/system/tests/src/Functional/UpdateSystem/UpdateScriptTest.php
@@ -661,6 +661,7 @@ public function testMaintenanceModeLink() {
     $this->drupalLogin($full_admin_user);
     $this->drupalGet($this->updateUrl, ['external' => TRUE]);
     $this->assertSession()->statusCodeEquals(200);
+    $this->updateRequirementsProblem();
     $this->clickLink('maintenance mode');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->elementContains('css', 'main h1', 'Maintenance mode');
@@ -670,6 +671,7 @@ public function testMaintenanceModeLink() {
     $this->drupalLogin($this->updateUser);
     $this->drupalGet($this->updateUrl, ['external' => TRUE]);
     $this->assertSession()->statusCodeEquals(200);
+    $this->updateRequirementsProblem();
     $this->clickLink('maintenance mode');
     $this->assertSession()->statusCodeEquals(200);
     $this->assertSession()->elementContains('css', 'main h1', 'Maintenance mode');
-- 
GitLab