Problem/Motivation

Since #3279640: Standard install profile uses Olivero for update.php is being used for update.php in standard. Unfortunately \Drupal\Tests\RequirementsPageTrait::assertRequirementSummaries() assumes that Seven is being used. This means that \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem() doesn't work because $this->assertWarningSummaries(['PHP']); fails.

Steps to reproduce

Run \Drupal\Tests\standard\Functional\StandardTest using PHP 7.3 - see https://www.drupal.org/pift-ci-job/2378199.

Proposed resolution

Fix \Drupal\Tests\RequirementsPageTrait::assertRequirementSummaries() to work both with Seven and Claro.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

N/a

CommentFileSizeAuthor
#2 3279788-2.patch2.81 KBalexpott

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
StatusFileSize
new2.81 KB

I tested this with multiple requirement warnings by hacking in an additional requirement to system_requirements and asserting on it in \Drupal\Tests\RequirementsPageTrait::updateRequirementsProblem() as well as the expected PHP one.

xjm’s picture

Status: Needs review » Reviewed & tested by the community

#2 works; I don't know that we can do better than that. The @todo still applies but better to fix the test suite for now.

  • larowlan committed 23e599b on 9.5.x
    Issue #3279788 by alexpott: PHP 7.3 testing on Drupal 9.4.x and 9.5.x is...

  • larowlan committed 2247be9 on 9.4.x
    Issue #3279788 by alexpott: PHP 7.3 testing on Drupal 9.4.x and 9.5.x is...
larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 9.5.x and cherry-picked to 9.4.x

Thanks

alexpott’s picture

I've cherry picked this to 10.0.x because whilst it not needed there at the moment the code should be aligned and it is possible that in the future it might be needed.

  • alexpott committed 98fa7ce on 10.0.x authored by larowlan
    Issue #3279788 by alexpott: PHP 7.3 testing on Drupal 9.4.x and 9.5.x is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.