Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Mar 2017 at 08:48 UTC
Updated:
11 Jul 2017 at 10:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
harings_rob commentedI think it actually does have coverage:
https://api.drupal.org/api/drupal/core%21modules%21language%21tests%21sr...
https://api.drupal.org/api/drupal/core%21modules%21language%21tests%21sr...
Comment #3
quietone commented@harings_rob, thanks for looking into this. The test you refer to is the migration test, which will run the necessary migrations and confirm that the destination db has the correct values. The test that is missing is a test of the source plugin alone. The test will reside in ./core/modules/language/tests/src/Kernel/Plugin/migrate/source/d6 and extend MigrateSqlSourceTestBase. Since this source plugin is only getting data from node_type table, it will be similar to the test of the NodeType plugin, ./icore/modules/node/tests/src/Kernel/Plugin/migrate/source/d6/NodeTypeTest.php
Comment #4
jofitzAdded LanguageContentSettings source plugin tests for both D6 and D7.
Comment #5
quietone commented@Jo Fitzgerald, thank you. I was thinking we should add a test to cover both cases of i18n_lock_mode in the D7 version. And while thinking about that realized that this needs to be postponed on #2862006: MigrateSourceTestBase returns false positives for most plugin tests.
Comment #6
heddnComment #7
heddnComment #8
jofitzNo longer blocked.
Comment #9
quietone commentedAssign to myself to review.
Comment #10
quietone commentedd6/LanguageContentSettingsTest.php is failing locally. So retesting this.
Comment #12
quietone commentedUnassigning, so I can review.
Comment #13
rajeevkRe-rolling patch for test queue
Comment #15
mitrpaka commentedLanguageContentSettings source plugin test updated for D6.
Comment #16
kekkisI see green!
Comment #19
catchCommitted/pushed to 8.4.x and cherry-picked to 8.3.x. Thanks!