Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2018 at 16:57 UTC
Updated:
3 Apr 2018 at 15:19 UTC
Jump to comment: Most recent, Most recent file
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 commentedThis broke
8.5.xas #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.