Skip to content

Commit

Permalink
Issue #3122742 by alexpott: Fix PHP 5 tests on 8.7.x
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a5e29b0929a7272b27a303d40d76cc3898c9bfd)
  • Loading branch information
xjm committed Mar 27, 2020
1 parent 6fd5798 commit cbe5057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Drupal/Tests/RequirementsPageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit cbe5057

Please sign in to comment.