Closed (fixed)
Project:
Commerce Migrate
Version:
8.x-2.x-dev
Component:
Drupal Commerce 1.x
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2017 at 03:42 UTC
Updated:
16 Aug 2017 at 21:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedComment #3
quietone commentedPostponed on #2894712: Commerce Order Tests failing.
Comment #4
quietone commentedAdd assert entity tests for ProductType and ProductVariationType.
Comment #5
quietone commentedTest wasn't finished properly.
Comment #7
quietone commentedComment #8
heddnNeeds re-roll after #2894123: Move commerce to submodule.
Comment #9
quietone commentedReroll
Comment #10
joshmillerComment #11
heddnI wonder if using the data provider pattern would make these tests easier to read and maintain. I mean, we're in there already updating these tests. Why not go all the way. If that is out of scope, this is RTBC and we can do that in a follow-up. Otherwise, NW.
Comment #12
heddnGonna work on the data provider changes.
Comment #13
heddnThere's going to be a failed test here (I hope). I think we need to look at the product migration a little. The product id for a variation loaded from the product is pointed to another product, not the product it was referenced from.
I also cleaned-up the test trait, because the DX of the parameter names was difficult to read.
Comment #15
heddnCross-linking to #2899153: Cannot add variation to cart, due to failed store detection
Comment #16
quietone commentedI would have preferred that to be a follow up. I see the advantages and like them. But one drawback I see is that ProductTypeTest and ProductVariationTest will take twice as long to run.
Yes, the $expected on all the parameters is bulky. But I am so used to now that is just what I do.
Whoa, odd things happening here. Some debugging and I see that after these migrations
there aren't any products, the commerce_product table is empty.
After those are run, 'd7_product_display' is run and that creates 20 of the 84 products. The first one has an id 15, which is id 1 in the source.
]);
Comment #17
heddnCommitting #9 and move the refactor to a follow-up: #2899321: Refactor Commerce Product and ProfileBilling tests
Comment #19
heddnComment #20
quietone commented@heddn, thanks.