Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2016 at 11:05 UTC
Updated:
25 Apr 2017 at 21:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedComment #3
quietone commentedAdded VariableTest.php
Comment #4
erozqba commentedHi @quietone,
I was reviewing and testing your patch and it looks great to me.
I have only one suggestion : Use only one way to declare an
array. In the classi18nVariableTest, you have used two different ways:array()and[]. How you use[]more frequently in other parts of your code, I have replacedarray()by[]in the patch 2807913-4.patch .Comment #6
quietone commented@erozqba, thanks for catching my error and converting everything to short array syntax.
Comment #7
erozqba commentedAll tests pass for the patch 2807913-4.patch, @quietone and I have tested and review this.
Comment #8
quietone commented@erozqba, Thanks for your work! But since we both wrote the patch it neither of us should really be marking it RTBC. I realize your latest change was kinda minor but it still better to have another person RTBC. (Adding an interdiff with your patch is also helpful to anyone following). The handbook has some more detail on marking RTBC that you may haven't seen.
Setting to NR so that someone other than those helped write the patch take a look.
Comment #9
erozqba commented@quietone
I found that replace only the way that arrays are declared was really a minor change, but you are completely right, is better if someone other takes a look. I have added the interdiff-2807913-3-4.txt to make this helpful as you suggested. Thanks!
Comment #10
svendecabooterThe patch doesn't seem to convert the VariableMultiRow plugin tests.
Attached is an updated patch that converts this Plugin test as well.
Comment #12
erozqba commented@svendecabooter Thanks for your work! I have made minor changes to your patch to make it pass the tests.
Comment #13
svendecabooterThanks erozqba!
Seems my "phpcbf" command added a dot at the end of the @covers statement, which is not really helpful :)
Comment #14
phenaproximaAssigning to myself for review.
Comment #15
phenaproximaNothing objectionable here. Great work, guys.
Comment #16
alexpottI think entangling these tests actually makes it harder to understand what is being tested. Let's just copy the providerSource from VariableTest and extend MigrateSqlSourceTestBase.
Where's this test gone?
Comment #17
erozqba commentedHi @alexpott I don't know how to implement the VariableMultiRowSourceWithHighwaterTest, any hint you could provide here, any example? Thanks in advance.
Comment #18
jofitz(and replaced a few commas)
Comment #20
jofitzCorrectly named the
VariableMultiRowSourceWithHighwaterTestclass(!) #facepalmComment #22
jofitzTests pass after retest.
Comment #23
phenaproximaGreat stuff. Thank you, @Jo Fitzgerald! I have only one concern about one of the tests, and it's nothing you did, but I'd like to address it here:
I don't understand what this test is asserting. How can variables have a high-water mark? High-water marks are only for things that have a deterministic order; variables don't really fall into that category.
If this is what the old version of the test did, that old test is weird and strange and proves nothing, and we should drop this entire test class from our suite.
Comment #25
quietone commenteds/VariableMultiRowTest/VariableMultiRowSourceWithHighwaterTest
Comment #26
quietone commentedReally? I think I'm in time slip, didn't see comments 20+. Sigh. Sorry for the noise.
Comment #27
quietone commentedRe #23, Yes, that is just converting the original code. I thought it was kinda odd too.
s/i18nVariableTest/I18nVariableTest
And, if it can be done here, can we also rename the plugin from i18nVariable to I18nVariable?
Comment #28
quietone commentedRerolled and removed VariableMultiRowSourceWithHighwaterTest.php.
Renaming the source plugin i18nVariable and the corresponding test should be another issue.
Comment #29
phenaproximaWerd to that. Looks poifect to me!
Any further condensing of these tests (i.e., taking greater advantage of the data provider pattern) can happen in a follow-up. Just moving these to the new base class is a big help. So let's get this in.
Comment #31
joelpittetTestbot hiccup
Comment #33
erozqba commentedComment #34
alexpottCommitted and pushed b523b90 to 8.4.x and b400bf8 to 8.3.x. Thanks!
Backported to 8.3.x as this is a tests only change to an experimental module.