Postponed on #3265483: Handle block migration for modules moved to contrib and #3265424: Move migrate related aggregator tests to the module in preparation of removal in d10
Problem/Motivation
Follow up to #3265483: Handle block migration for modules moved to contrib to change a test to use the aggregator test fixture and not the one in migrate_drupal.
Steps to reproduce
Proposed resolution
in \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateBlockTest remove use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase; so that \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateDrupal6TestBase is used which means that \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateDrupal6TestBase::getFixtureFilePath will load the path to the fixture in aggregator module.
Update $modules to only those needed for this test, noting that aggregator is installed in the base class.
Remaining tasks
Patch
Review
Commit
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3267274-13.patch | 896 bytes | quietone |
| #13 | interdiff.txt | 514 bytes | quietone |
| #4 | 3267274-3.patch | 913 bytes | quietone |
Comments
Comment #2
quietone commentedAdding postponed details.
Comment #3
daffie commented#3265424: Move migrate related aggregator tests to the module in preparation of removal in d10 and #3265483: Handle block migration for modules moved to contrib have landed.
Comment #4
quietone commentedRemoved the @todo and updated the $modules list because \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase enables modules that \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateDrupal6TestBase does not. The test now only installs the modules it needs.
The patch applies to 9.4.x an 10.
Comment #5
daffie commentedLooks good to me.
Comment #7
xjmTest fails are known randoms, so I sent a retest.
Setting back to RTBC to restore status -- I have not reviewed this myself yet.
Comment #8
xjmThe title and IS here do not describe what's currently happening in the patch; could we update them to explain the current approach? Thanks!
Comment #9
quietone commentedThe patch is changing the fixture that is loaded in the test. Added more to the IS.
Comment #10
xjmComment #11
quietone commentedRight, what is obvious to me as a migrate maintainer is not obvious to others.
Comment #12
danflanagan8@quietone, I took a look at the MigrateDrupal6TestBase from migrate_drupal and I didn't see
taxonomyas one of the$modules.When I apply the patch and then remove the line that adds
taxonomythe test still passes.Is there something I'm missing? Or should we update the patch so that we don't enable
taxonomy?Comment #13
quietone commented@danflanagan8, thanks!
But Grr! I recall working on something else at the same time that needed taxonomy and I seemed to have mixed them up. Yes, let's remove it.
Comment #14
danflanagan8Thanks, @quietone. This one's ready to commit as far as I can tell.
Comment #17
catchCommitted/pushed to 10.0.x and cherry-picked to 9.4.x, thanks!