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.
Test modules should contain the test keyword in their name.
We need to rename these modules:
- config_override -> config_override_test
- config_other_module_config -> config_other_module_config_test
- config_override_test -> config_existing_default_config_test
config_test_invalid_name is removed since it is not ever used.
Comment | File | Size | Author |
---|---|---|---|
#17 | 2225485.17.patch | 16.33 KB | alexpott |
#16 | 2225485.16.patch | 17.49 KB | alexpott |
Comments
Comment #1
gremy CreditAttribution: gremy commentedComment #2
gremy CreditAttribution: gremy commentedComment #3
alexpottThere is a config_override_test module already but this is mis-named :)
Comment #4
gremy CreditAttribution: gremy commentedRefactored module names and code to match request.
Comment #5
gremy CreditAttribution: gremy commentedComment #6
gremy CreditAttribution: gremy commentedComment #7
jthorson CreditAttribution: jthorson commentedTook a quick look at the patch ... the changes that are there look correct, though admittedly I don't have enough D8 experience to comment on the 'context' of the changes.
I didn't check to ensure that 'all' the instances were captured, but assuming they were, I think it's RTBC.
Comment #8
jthorson CreditAttribution: jthorson commentedGremy ... can you confirm that you've used grep or some other search mechanism to ensure that there are no other instances of the old test names left in the code?
Comment #9
alexpottThe old modules are not removed by the patch in #4
Comment #10
gremy CreditAttribution: gremy commentedjthorson: I can confirm I have searched the entire repository when making the patch.
alexpott: I renamed your patch and rolled it again so that it will go through testing. I do not understand what exactly I am missing from my patch.
Comment #11
alexpottThe patch in #10 is still not deleting the files correctly.
Comment #12
gremy CreditAttribution: gremy commentedThanks alex. Rerolled patch.
Comment #13
gremy CreditAttribution: gremy commentedComment #14
dawehnerWe still have unwanted files in there:
LOL
Comment #15
xjmUse
git mv
to move the files and directories to their new names/locations. This will simultaneously make the changes on your filesystem and update the git index, so that when you create a patch, the old cruft is deleted. Edit: Note also that if you are diffing in the same branch without a commit, you'll need to usegit diff --staged
to ensure staged changes are included in the diff.Comment #16
alexpottRolled patch that moves / removes files as desired.
Patch removes completely invalid config_test_invalid_name test module as it is unused.
Comment #17
alexpottRe-rolled for PSR4
Comment #18
alexpottComment #19
alexpott17: 2225485.17.patch queued for re-testing.
Comment #20
Gábor HojtsyWhy is this removed?
Comment #21
alexpottBecause the test that used it was removed in #2082117: Install default config only when the owner and provider modules are both enabled since the very nature of that test became impossible. You can only install configuration that begins with a currently installed or being installed extension name.
Comment #22
Gábor HojtsyThanks for discussing this on IRC, so we digged to the bottom of it :) All righto, looks good then.
Comment #23
catchCommitted/pushed to 8.x, thanks!