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 10:18 UTC
Updated:
29 Oct 2016 at 06:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedComment #3
quietone commentedComment #4
phenaproximaLooks great! Only two nitpicks...
I would rather this was moved directly into providerSource().
Nit: Extra blank line here.
Comment #5
quietone commentedWhy?
Comment #6
phenaproximaConsistency. Part of the purpose of having the new base class is to get rid of warts like $expectedResults, which being a protected property implies that there's only one test pass. (In this case there is, but everything should be in the data provider.)
Comment #8
phenaproximaWhat? No, it didn't.
Comment #9
alexpottSee #2807879-14: Convert Contact's Migrate source tests to new base class - let's use better array keys to make it easier to understand what is going on.
Comment #10
quietone commentedOK
Comment #11
phenaproximaNice. Back to RTBC.
Comment #12
chipway commentedMay be I am wrong, but I don't see the comparison between $tests[0]['source_data']['blocked_ips'] and $tests[0]['expected_data'] in 2807845-10.patch.
Could you check please?
Comment #13
svendecabooterI don't see an issue here.
The source & expected data get evaluated by the testSource() method in \Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase.
Which provides the given source data to the \Drupal\ban\Plugin\migrate\source\d7\BlockedIps Plugin, which prepares it into the expected data.
Comment #14
alexpottCommitted and pushed 9baedb6 to 8.3.x and 2f7b4e3 to 8.2.x. Thanks!
Comment #16
chipway commentedThanks @svendecabooter for the hint.
Comment #17
chipway commented