Problem/Motivation
To keep existing test coverage and to reduce the size of the patch in #2746541: Migrate D6 and D7 node revision translations to D8. Plus, this work can be considered a step of #2974445: [Meta] Refactor Migrate Drupal UI Functional tests.
So, what are we doing here? In the node revision translation issue changes are needed to the functional test of a site migration via the UI, which effects the output displayed on the IdConflict page. The node revision translation issue must start from an empty D8 database which it isn't at the moment, but it used to test the IdConflict page. So, lets keep those changes and make a new test for just the IdConflict form so we don't lose test coverage.
When this is committed the test of the idConflict page with all the preloaded content, added by CreateTestContentEntitiesTrait::createContent() will be done twice, once in the new tests and once in the full migration test. That will change to just the tests in this issue when #2746541: Migrate D6 and D7 node revision translations to D8 is committed.
Proposed resolution
Add separate tests of the IdConflict form for d6 an d7 by starting with the ones in patch #229
Pull out the IdConflict form test, with preloaded content to its own test for D6 and D7. Keep the changes to a minimum here because there is an issue to refactor all migrate_drupal_ui functional tests, #2974445: [Meta] Refactor Migrate Drupal UI Functional tests, which they very much need. While that issue is still at NR but is being worked on steadily.
Remaining tasks
Review and commit
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 3087061-14.patch | 7.57 KB | quietone |
| #14 | interdiff-10-14.txt | 2.21 KB | quietone |
| #10 | 3087061-10.patch | 8.07 KB | quietone |
| #10 | interdiff-7-10.txt | 711 bytes | quietone |
| #7 | 3087061-7.patch | 8.08 KB | quietone |
Comments
Comment #2
quietone commentedJust copying the files over.
Comment #3
quietone commentedThis is ready for review.
Comment #5
quietone commentedTagging migrate critical because it is needed for #2746541: Migrate D6 and D7 node revision translations to D8.
Comment #6
quietone commentedNo it is not. remove
Use inheritdoc
Tests Id conflict form
Comment #7
quietone commentedCorrected comments as above. Also removed @legacy as there is no legacy code being tested here.
Comment #8
quietone commentedComment #9
lendudeShouldn't the Drupal 7 test be using the Drupal 7 fixture?
Comment #10
quietone commentedYes, it should. Should be fixed here.
Comment #11
mikelutzMakes sense, this seems to be a good first step. This patch does nothing but add test coverage, so lets get it committed quickly.
Comment #12
larowlanthis don't appear to be used?
if this is a d6 test - do we need to check this?
if this is a d7 test - why do we have this? are we duplicating code here on purpose? should we be putting the common stuff in a trait and using the trait in both these classes?
Comment #13
larowlanComment #14
quietone commentedFixes for the items in #13.
Yes, for two reasons. First, this test needed to be split into a d6 an d7 version in the node revision translation issue. Doing that just increased the size of that already big and complicated patch, which I think it makes it harder to focus on the node migration changes. So, moving this part to a separate issue will help 'declutter', for lack of a better word, the node revision translation patch. The second reason is that there is an issue to refactor all the migrate_drupal_ui functional tests. (Which reminds me I need to upload my last version of that refactoring).
I haven't run the tests locally.
Comment #15
mikelutzfeedback addressed. back to RTBC
Comment #16
alexpottAs this is additional test coverage backported all the way to 8.8.x
Committed and pushed 83e62065d0 to 9.0.x and af807602d2 to 8.9.x and 27598bdb40 to 8.8.x. Thanks!