Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Split from #3087644: Remove Drupal 8 updates up to and including 88**:
IMO the next step is to move the tests in that issue to a sub-namespace, i.e. system\Functional\Update\UpdateSystem, so that it's very easy to review the mega-patch here to see that they haven't been removed.
Comment | File | Size | Author |
---|---|---|---|
#7 | updatesystem-tests-3106395-7.patch | 13.99 KB | Berdir |
#2 | updatesystem-tests-3106395-2.patch | 14.14 KB | Berdir |
Comments
Comment #2
BerdirThis moves all tests that have "use UpdatePathTestTrait;", including the one in workspaces, as well as as UpdatePathTestBaseFilledTest.
Wasn't sure about, but that's already in a special place together with the base class, so I left that.
Some of the remaining ones I'm not 100% sure whether they could be useful:
\Drupal\Tests\system\Functional\Update\WarmCacheUpdateFrom8dot6Test: Was added for a specific bug, but having a test for updates might be useful later on too, even though we now have the special update cache backend.
\Drupal\Tests\system\Functional\Update\NoDependenciesUpdateTest: was also added for a specific bug, and I think \Drupal\FunctionalTests\Update\UpdatePathTestBaseTest is pretty minimal too with drupal-8.8.0.bare.standard.php.gz? ( Didn't investigate why \Drupal\Tests\system\Functional\Update\UpdatePathRC1TestBaseTest wasn't enough to cover this which I'd assume is equally bare.
Comment #3
BerdirNot quite sure if this is the namespace that @catch had in mind, in a previous comment, he said:
With
system\Functional\Update\UpdateSystem
, we can't do the rm -rf Update as that includes UpdateSystem, should we move UpdateSystem out so it's next to Update and not inside?Comment #5
BerdirAh, this breaks the relative path of course for that test. Will wait on feedback on the namespace before fixing that. Moving it one level up would fix it too.
Comment #6
alexpott@Berdir yeah I think core/modules/system/tests/src/Functional/Update/UpdateSystem should be core/modules/system/tests/src/Functional/UpdateSystem
I think removing NoDependenciesUpdateTest is fine. That is about testing without the block module installed. Very rare case. Also I think removing WarmCacheUpdateFrom8dot6Test is okay too. That was for a very specific error around extension objects.
Comment #7
BerdirSounds good to me. Moved the classes. I also removed @group legacy from two tests that still had it. Not much point in an interdiff.
Comment #8
catchI was thinking Update/UpdateSystem and Update/Updates but moving them sideways instead of downwards is a much better idea...
Looks solid to me.
Comment #9
alexpott@catch was about to commit this but I think we need to land #3102059: Make tests of the update system use UpdatePathTestTrait instead of UpdatePathTestBase too because then maintaining both 8.9.x and 9.0.x is simpler because these tests are in the same place.
I guess we can commit to 9.0.x and wait on that issue.
Committed 46eaa9b and pushed to 9.0.x. Thanks!
Comment #11
catch#3102059: Make tests of the update system use UpdatePathTestTrait instead of UpdatePathTestBase is in, so this is ready to go now.
Comment #12
BerdirI requested an 8.9.x test.
Comment #14
catch8.9.x is green so I've gone ahead and cherry-picked to 8.9.x.