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.
#2669016: Ensure that removing Commerce modules removes their configuration has now landed. It has shown that incorrect config dependencies can cause Commerce to leave config objects on uninstall, making it impossible to install it again later.
We should create a test that ensures Commerce can be reinstalled.
We'd ensure $modules contains all Commerce modules.
We'd then use \Drupal::service('module_installer')->uninstall() to first remove Commerce, then ->install() to install it again.
Comments
Comment #2
harings_rob CreditAttribution: harings_rob at Harings.be commentedComment #3
harings_rob CreditAttribution: harings_rob at Harings.be commentedPR: https://github.com/drupalcommerce/commerce/pull/351
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedCommitted, thanks!