Problem/Motivation

We should add defaultTheme where it will be required in tests extending BrowserTestBase.

Drupal\Tests\BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/2352949, which includes recommendations on which theme to use.

See https://www.drupal.org/node/3083055
and https://www.drupal.org/project/drupal/issues/3082655

Proposed resolution

Add the defaultTheme property to tests that extend BrowserTestBase, where appropriate or another theme where appropriate, based on https://www.drupal.org/node/3083055

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3095611-2.patch479 bytesrpayanm

Comments

oknate created an issue. See original summary.

rpayanm’s picture

Status: Active » Needs review
StatusFileSize
new479 bytes
oknate’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, I checked and I think this covers every test, including submodules.

thalles’s picture

Looks good to me!
Thanks!

  • thalles committed 386de4f on 8.x-4.x authored by oknate
    Issue #3095611 by rpayanm, oknate, thalles: Add defaultTheme in tests...
thalles’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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