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
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3095640-10.patch | 2.51 KB | rpayanm |
| #8 | 3095640-8.patch | 2.63 KB | sahana _n |
| #6 | interdiff_4-6.txt | 1.84 KB | ravi.shankar |
| #6 | 3095640-6.patch | 2.53 KB | ravi.shankar |
| #4 | 3095640-4.patch | 2.63 KB | sahana _n |
Comments
Comment #2
rpayanmComment #3
berdirLooks like that test requires classy?
Possibly also use this issue to add core_version_requirement ^8 || ^9 and the same to composer.json as a drupal/core dependency per https://www.drupal.org/node/3070687?
And running tests shows a bunch of deprecations, some like jquery ui might be tricky and several others require 8.8, so the requirement should be ^8.8:
Comment #4
sahana _n commentedPlease review the patch.
Comment #5
berdirStill need to change the failing test to use classy instead of stark.
Comment #6
ravi.shankar commentedHere I have made changes as suggested in #5
Comment #7
berdirOnly the one test that failed with stark (EntityDisplayTest) should be updated to classy, not all of them. That will likely require fewer changes in the future.
Comment #8
sahana _n commentedPlease review the patch.
Comment #9
berdirMissed this before, but if we go for ^8 then we should keep core: 8.x so that earlier core versions can also still install it.
Comment #10
rpayanmComment #11
berdirNow it looks good.
Comment #13
nils.destoop commentedThx for the patches and the reviews. I committed it to dev.
Comment #14
sahana _n commented