Problem/Motivation
Found while working on #3547124: Remove system module from kernel tests that don't need it
\Drupal\Tests\system\Kernel\Scripts\DbImportCommandTest installs a bunch of modules, but not their schema, then imports a db dump. What's the point installing the modules in the first place?
FWIW the test was added in #2550291: Improve and generalize database dump tools
Steps to reproduce
NA
Proposed resolution
Remove the $modules property
Remaining tasks
MR for 11.2
User interface changes
NA
Introduced terminology
NA
API changes
NA
Data model changes
NA
Release notes snippet
NA
| Comment | File | Size | Author |
|---|
Issue fork drupal-3547128
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3547128-dbimportcommandtest
changes, plain diff MR !13290
- 3547128-11.2.x
changes, plain diff MR !13353
Comments
Comment #3
mstrelan commentedComment #4
smustgrave commentedNice find! Cleaned up the title some but tests are still green so definitely not needed.
Comment #5
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #6
mstrelan commentedMR applies cleanly, bot is drunk
Comment #7
quietone commentedSorry, diff no longer applies.
Comment #8
mstrelan commentedOK, I was trusting the MR overview page saying it merges cleanly. I tested manually and can confirm it applies with
patch -p1but not withgit apply.Have rebased and force pushed now.
Comment #10
quietone commented@mstrelan, thanks for the details.
Committed to 11.x.
The change did not cherry-pick though so not committed to 11.2.x and neither did applying the patch using
curl -s https://git.drupalcode.org/project/drupal/-/merge_requests/13290.diff | patch -p1. Seeting to needs work for an MR on 11.2.xComment #12
mstrelan commentedHave opened an MR for 11.2.x, although not sure if should backport this, since we didn't do the same for #3547124: Remove system module from kernel tests that don't need it, which is the source of the conflict.
Comment #15
quietone commented@mstrelan, thanks. Yes, we should skip committing this to 11.2.x. I apologize for wasting your time.