Problem/Motivation
Because of #3083275: [meta] Update tests that rely on Classy to not rely on it anymore and Classy being deprecated in Drupal 9 + removed in Drupal 10,: Tests that aren't specifically testing Classy yet declare $defaultTheme = 'classy'; should be refactored to use Stark as the default theme instead.
Proposed resolution
Change all tests in this module to use Stark as the default theme, and refactor the tests where needed so they continue to function properly.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3275843-4.patch | 15.54 KB | danflanagan8 |
Comments
Comment #2
danflanagan8This module only had three mentions of classy, and I think that it was as simple as changing each one to stark. Due to local dev issues I didn't have a chance to test this patch locally. Fingers crossed!
All the other changes in the patch are changing pageText(Not)Contains to statusMessage(Not)Contains. This is a pretty trivial one.
Comment #4
danflanagan8That's why you run tests locally...
Here's a patch that I actually tested. I don't feel like doing an interdiff. Let's just ignore the first patch.
Comment #5
larowlanit feels like we're losing some coverage here, should we add a preprocess hook to a test module or similar to ensure that the search page order is working?
Comment #6
danflanagan8Thanks for the review, @larowlan!
I'm afraid I don't understand the comment in #5:
Could you elaborate? Thanks! Cheers!
Comment #8
smustgrave commentedRerunning the tests for 9.5.x
But searched the search module folder for classy and nothing returned so I'll mark RTBC after the tests.
Unless you want to move back to NW for #5 afraid I don't understand either.
Comment #9
smustgrave commentedComment #13
lauriiiI don't see how the change referenced in #5 would result in lost test coverage at least to what is reasonable to test in the scope of this test. I guess it would be fine to open a follow-up if there's some test coverage that we should add back.
Committed f40b8e8 and pushed to 10.1.x and cherry-picked to 10.0.x and 9.5.x. Thanks!