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.
Just that, remove /core/modules/migrate/tests/src/Unit/MigrateSqlSourceTestCase
Comment | File | Size | Author |
---|---|---|---|
#16 | 309699-16.patch | 18.41 KB | quietone |
#16 | interdiff-14-16.txt | 892 bytes | quietone |
#14 | 309699-14.patch | 18 KB | quietone |
#14 | interdiff-7-14.txt | 628 bytes | quietone |
#7 | interdiff-5-7.txt | 2.66 KB | quietone |
Comments
Comment #2
quietone CreditAttribution: quietone as a volunteer commentedThis removes the test base class and tests using it. Still need to confirm that test coverage isn't being lost.
Comment #3
quietone CreditAttribution: quietone as a volunteer commentedFour legacy tests were removed and here are the existing tests that do the same work.
migrate_drupal/tests/src/Unit/source/VariableMultiRowTestBase.php replaced by migrate_drupal/tests/src/Kernel/Plugin/migrate/source/VariableMultiRowTest.php
migrate_drupal/tests/src/Unit/source/VariableTest.php replaced by core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/VariableTest.php
migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php replaced by core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d6/VariableTranslationTest.php
migrate_drupal/tests/src/Unit/source/d6/i18nVariableTest.php replaced by core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d6/VariableTranslationTest.php
Comment #4
longwavePatch looks good and the existing tests above look correct too.
Comment #5
quietone CreditAttribution: quietone as a volunteer commented@longwave, thanks but on a second look I think this should also remove the deprecated source plugins that were being tested.
Comment #7
quietone CreditAttribution: quietone as a volunteer commentedSeem there were two test of the deprecated i18nVariable source plugin. One in namespace Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\d6 and one in Drupal\Tests\migrate_drupal\Unit\source\d6.
Comment #8
quietone CreditAttribution: quietone as a volunteer commentedComment #9
longwaveComment #11
longwaveRandom fail in Drupal\Tests\media_library\FunctionalJavascript\WidgetViewsTest
Comment #12
larowlanQueued a test run on PHP 7.3
Comment #13
alexpottThere's an
@see \Drupal\migrate_drupal\Plugin\migrate\source\d6\i18nVariable
in \Drupal\migrate\Plugin\migrate\destination\Config that needs replacing. I think to \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation but not 100% sure.Comment #14
quietone CreditAttribution: quietone as a volunteer commentedThanks alexpott.
The @see is changed to \Drupal\migrate_drupal\Plugin\migrate\source\d6\VariableTranslation.
Comment #15
Wim LeersVerified that the change in #14 is correct.
… but this comment also needs to be updated.
Comment #16
quietone CreditAttribution: quietone as a volunteer commentedUpdated the doc bloc in /core/modules/migrate/src/Plugin/migrate/destination/Config.php. grepped for i18n_variable and didn't see others that needed to be changed. I could be wrong!
Comment #17
Gábor HojtsyLooks good now :)
Comment #18
alexpottCommitted eb9af30 and pushed to 9.0.x. Thanks!
Added issue credit @Wim Leers and myself as we left reviews that improved the patch.
Fixing long comment on commit...