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 |
|---|---|---|---|
| #7 | 3095617-7.patch | 444 bytes | akashkumar07 |
| #5 | add_defaultTheme_in_tests_extending_browserTestBase-3095617-4.patch | 853 bytes | gnanagowthaman sankar |
| #5 | interdiff_2-4.txt | 394 bytes | gnanagowthaman sankar |
| #2 | 3095617-2.patch | 880 bytes | rpayanm |
Comments
Comment #2
rpayanmComment #3
berdirkernel tests don't need this.
Comment #4
gnanagowthaman sankar commentedHi @Berdir,
As you mentioned I made the following changes. Please review and let me know for any changes.
Thanks & Regards,
Gnanagowthaman sankar
Comment #5
gnanagowthaman sankar commentedPatch,
Thanks & Regards,
Gnanagowthaman sankar
Comment #6
berdirThere's still a left-over spaces change now in the kernel test.
Comment #7
akashkumar07 commentedComment #8
berdirThanks.
Comment #10
phenaproximaCommitted and pushed to 8.x-2.x. Thanks!