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.
Problem/Motivation
Languages's Migrate source test extend the (deprecated) class MigrateSqlSourceTestCase
.
Proposed resolution
Change the test to extend the base class MigrateSqlSourceTestBase
introduced in #2791119: Write meaningful Migrate source tests.
Remaining tasks
Rewrite test.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-7-9.txt | 1.07 KB | jofitz |
#9 | 2848364-9.patch | 4.45 KB | jofitz |
Comments
Comment #2
jofitz CreditAttribution: jofitz at ComputerMinds commentedRewrote test.
Comment #3
quietone CreditAttribution: quietone as a volunteer commented@Jo Fitzgerald, thanks for finding this one.
Should be Drupal\Tests\language\Kernel\Plugin\migrate\source. Compare with UserTest.php
Comment #4
jofitz CreditAttribution: jofitz at ComputerMinds commented@quietone Is the location of the file important too? Currently it is
core/modules/language/tests/src/Kernel/Migrate/LanguageTest.php
should it becore/modules/language/tests/src/Kernel/Plugin/migrate/source/LanguageTest.php
?Comment #5
jofitz CreditAttribution: jofitz at ComputerMinds commentedI have adjusted the namespace, but not moved the file. Shout if that needs to change.
Comment #7
jofitz CreditAttribution: jofitz at ComputerMinds commentedComment #8
quietone CreditAttribution: quietone as a volunteer commentedYes, this is right.
Indentation needs fixing. Then it'll be good to go.
Comment #9
jofitz CreditAttribution: jofitz at ComputerMinds commentedDunno how I missed that! Let's get this done.
Comment #10
quietone CreditAttribution: quietone as a volunteer commentedThanks!
Comment #11
xjmAs an improvement to a single test for an experimental module, this change is eligible for 8.3.x in any alpha, beta, or patch release. Thanks!
Comment #14
xjmThe broken patch in #5 kind of proves the test is running, so that's cool in a way. :)
Committed to 8.4.x and 8.3.x. Thanks!
Comment #15
xjm