Closed (outdated)
Project:
Drupal core
Version:
9.4.x-dev
Component:
extension system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Apr 2016 at 10:33 UTC
Updated:
30 Mar 2022 at 00:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanWe should consider back port to d7. This has always caught me out, especially in install profiles and tests
Comment #3
dawehnerI'll have a look at that
Comment #4
dawehnerWhile trying to write a test for it, see patch, I realized there is something in
ModuleHandler::buildDependencieswhich should deal with that.Comment #5
larowlanSo RTBC if green?
Comment #7
dawehnerWell, when I worked on #2687897: Convert system module's kernel tests to NG it somehow didn't took that properly into account.
Comment #8
larowlanFrom memory this only manifests in tests, which would point to the enabling stuff in the setup/init.
We had a script to make sure the order of dependencies in our profile .info files in d7 was in dependency order, else the installation from a profile in the test had weird results
Comment #19
quietone commentedIs this still a problem? It looks to me that the installer does use \Drupal\Core\Extension\ModuleHandlerInterface::buildModuleDependencies.
There is an existing test of installing two modules with a parent/child relationship, \Drupal\KernelTests\Core\Extension\ModuleInstallerTest::testConfigChangeOnInstall whereas the test here is with two sibling modules where one depends on the other. Should we add this test?
Comment #21
quietone commentedI reviewed this again today and I think I was wrong, this isn't testing siblings. The test of ordering is in testConfigChangeOnInstall which was added in 8.4.x in #2679008: Module weight is not taken into account after module installation.
Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done.
Thanks!