Issue #3122742 by alexpott: Fix PHP 5 tests on 8.7.x
parent
949038a0aa
commit
0a5e29b092
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue