Problem/Motivation
As part of #2796393: Migration process plugin not working with multiple source IDs I have been trying to add a test of the Migration process plugin, but have found the existing tests hard to understand and follow, mainly due to repeated code.
Proposed resolution
The existing tests can be simplified by adding a setUp() method and helper method(s).
The data provider can be tidied by replacing the comments with array keys.
Remaining tasks
Extract common code to setUp() and helper method(s).
Tidy data provider.
User interface changes
-
API changes
-
Data model changes
-
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff.txt | 943 bytes | boaloysius |
| #7 | 2867340-7.patch | 10.8 KB | boaloysius |
| #3 | 2867340-3.patch | 10.8 KB | jofitz |
| #3 | interdiff-2-3.txt | 2.43 KB | jofitz |
| #2 | 2867340-2.patch | 8.66 KB | jofitz |
Comments
Comment #2
jofitzExtracted common code to
setUp()and helper methodgetMigration().Comment #3
jofitzWhile I'm at it I'll tidy up the data provider too.
Comment #4
quietone commented@Jo Fitzgerald, this look really good. A definite improvement. I'd RTBC but will defer to someone more with more knowledge about tests.
Comment #5
heddnA lot easier to follow. Thanks for the improvemens.
Comment #6
star-szrSomewhat minor but the new code uses 'scaler' when it should say 'scalar'.
Comment #7
boaloysius commentedMade spelling corrections as stated in #6
Comment #8
boaloysius commentedComment #9
heddnBack to RTBC again. (assuming tests pass on a docs only modification).
Comment #10
jofitz@Cottser++
@JF--
Thanks for spotting that!
Comment #13
gábor hojtsyLooks good, resolved the concern from Cottser. Thanks all!