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.
Problem/Motivation
Drupal\Tests\system\Functional\Module\RequiredTest
is trying to test that you can't uninstall required modules from the admin/modules page but you can no longer uninstall modules there.
Proposed resolution
Move the test to be a part of UninstallTest
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#3 | 2949834-3.patch | 2.43 KB | alexpott |
#3 | 2-3-interdiff.txt | 802 bytes | alexpott |
#2 | 2949834-2.patch | 2.43 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottToo many dots
Comment #4
Mile23Nice catch.
t() in a test.
Grab the service from $this->container
Comment #5
alexpottThanks for the review @Mile23
1. That's not part of the patch.
2. I don't think there is any difference between \Drupal::service() and $this->container. And we have no rules about what to use.
Comment #6
LendudeNope, just lively discussions on the subject
Feedback has been addressed. The old test never actually added a required module, so if we ever got to a state where a test install had no required modules it would pass and never test anything, the new version also fixes this gap, nice!
Comment #7
Mile23"And we have no rules about what to use."
Right, so use $this->container. :-)
No worries. RTBC is fine.
Comment #9
catchCommitted/pushed to 8.6.x and cherry-picked to 8.5.x. Thanks!
Comment #11
tacituseu CreditAttribution: tacituseu commentedThis broke
8.5.x
as #2208429: Extension System, Part III: ExtensionList, ModuleExtensionList and ProfileExtensionList never went into8.5.x
.https://www.drupal.org/pift-ci-job/918609
Comment #13
alexpott@tacituseu thanks for spotting this. Just reverted the patch. We can leave this one not back ported.