Problem/Motivation
There are several tests that have references to Bartik and Seven:
1 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileExistingSettingsTest.php
1 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTest.php
1 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationQueryTest.php
1 core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php
1 core/tests/Drupal/FunctionalTests/Installer/InstallerTest.php
2 core/tests/Drupal/FunctionalTests/Installer/MultipleDistributionsProfileTest.php
1 core/tests/Drupal/FunctionalTests/Installer/StandardInstallerTest.phpThese tests should be updated to either use Olivero, Claro, or System module's test_theme so we can deprecate Bartik #3249109: Deprecate Bartik and Seven #3084814: Deprecate Seven theme as mentioned at #3278124: Convert various tests that use bartik/seven to olivero/claro.
Steps to reproduce
git grep -E '(bartik)|(seven)' -- 'core/tests/Drupal/FunctionalTests/Installer' | awk -F: '{print $1}' | sort | uniq -c should return no results when this work is complete.
Remaining tasks
Update the tests.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
I don't think we need release notes or a change record.
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | core-3281444-30.patch | 5.16 KB | nod_ |
| #22 | core-3281444-22.patch | 6.14 KB | vighneshh |
| #18 | core-3281444-18.patch | 6.14 KB | nod_ |
| #16 | reroll_diff_10-16.txt | 2.01 KB | ravi.shankar |
| #16 | 3281444-16.patch | 5.16 KB | ravi.shankar |
Comments
Comment #2
_shyReplaced references for the Bartik and Seven themes for the provided list of classes.
Let's see if the tests pass
Comment #3
_shyComment #5
_shyReworked patch. Now, I hope, all tests should pass.
Comment #6
daffie commentedAssign this issue to the parent #3285205: [META] Convert test that use Bartik/Seven to Olivero/Claro.
Comment #7
deviantintegral commentedWas there a specific reason we changed the tests from using a front-end theme (bartik) to an admin theme (claro)?
Comment #8
nod_I would guess that is because Claro do have a install page style whereas Olivero doesn't.
I don't think front/admin theme matters a lot here, it is mainly making sure that the theme chosen is the theme actually used.
Comment #9
lauriiiThis won't test what it should test given that Claro is the theme used for the installer. This should be either Olivero or some other theme which can be used for asserting that the theme can be changed.
Comment #10
ravi.shankar commentedMade changes as per comment #9, please review.
Comment #12
nod_Other issue with olivero needs to be fixed.
Comment #13
catchComment #14
nod_Comment #15
nod_Comment #16
ravi.shankar commentedAdded reroll of patch #10 and removed needs reroll tag, please review.
Comment #18
nod_Added my "less bad" solution from #3295735-7: Fix ConfigImportUITest with olivero to make tests pass.
Comment #20
nod_tried to find how to fix the remaining test failures in
InstallerTest, no luck yet.Help welcome :)
Comment #21
vighneshh commentedComment #22
vighneshh commenteda new patch updated test failure solution.
Comment #23
vighneshh commentedComment #24
nod_The interdiff is
Thanks for the find :)
Comment #25
nod_All good thanks ! Still need to dance around Olivero not having a config at the install stage but good enough
Comment #27
catchCommitted/pushed to 10.1.x and 10.0.x, kicking off a 9.5.x test run just in case.
Comment #29
nod_Need a 9.5.x patch
Comment #30
nod_9.5.x doesn't need the olivero fix
Comment #31
nod_Comment #32
nod_I simply removed the code I added to the patch in #18
Comment #34
catchCommitted/pushed to 9.5.x, thanks!