Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2012 at 20:23 UTC
Updated:
4 May 2012 at 20:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
q0rban commentedComment #2
q0rban commentedUpdated patch. I didn't realize there were processCount() and importedCount() methods.
Why isn't the test bot recognizing these?
Comment #3
q0rban commentedOk, and here's the patch with the fix.
Comment #4
mikeryanThe fix itself looks good, but a whole test module just to test this one case seems like overkill - would it be possible to build a test on migrate_example's wine.inc (the basis for the existing tests)?
Thanks.
Comment #5
q0rban commentedSure, I can do that. I saw in the README, however, that there are a bunch of missing tests, so I just assumed we'd need to set up our own test class for these, since it's going to require some things in those tests that you don't want visible in an example module. For example, in this migration, I'm setting up an incrementing variable in the migration in prepareRow(), and then adding a method to return that parameter. I'll work on trying to get an equivalent using the existing example migrations.
Comment #6
q0rban commentedOk, here you are! Doesn't seem as clean to me, as it kind of murks up the Migrate Example module.
Comment #7
q0rban commentedCleaned out the unnecessary __construct(), and updated comments.
Comment #8
q0rban commentedRemoving unnecessary logic from prepareRow() and unnecessary changes to beer.install.
Comment #9
q0rban commentedAha! Just thought of a way of doing this without needing to modify Migrate Example at all. I can use the timers to grab the number of times prepareRow() is called. Sorry for spamming this issue with patches.
Comment #10
mikeryanCommitted to D6 and D7, thanks!
Comment #11
mikeryan