Issue #3122742 by alexpott: Fix PHP 5 tests on 8.7.x

merge-requests/2419/head
xjm 2020-03-26 20:32:40 -05:00
parent 949038a0aa
commit 0a5e29b092
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ trait RequirementsPageTrait {
*/
protected function updateRequirementsProblem() {
// Assert a warning is shown on older test environments.
if (version_compare(phpversion(), DRUPAL_MINIMUM_SUPPORTED_PHP) < 0) {
$links = $this->getSession()->getPage()->findAll('named', ['link', 'try again']);
if ($links && version_compare(phpversion(), DRUPAL_MINIMUM_SUPPORTED_PHP) < 0) {
$this->assertNoText('Errors found');
$this->assertWarningSummaries(['PHP']);
$this->clickLink('try again');