Problem/Motivation
There doesn't seem to be test coverage for what happens to non-product content on the site as part of the migration.
Steps to reproduce
Run the Commerce v1 migration on Commerce Kickstart v2.
Proposed resolution
Add test coverage to ensure the non-product content is migrated properly
New test added, NodeTest that has assertions for some non product fields and terms.
Added field value assertions to ProductTest and ProductVariation test.
Remaining tasks
Write test coverage for the non-product nodes.Write test coverage for the non-product terms.- Review
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3166734-13.patch | 30.78 KB | quietone |
| #13 | interdiff-11-13.txt | 2.15 KB | quietone |
| #11 | 3166734-11.patch | 30.75 KB | quietone |
| #11 | interdiff-8-11.txt | 4.83 KB | quietone |
| #6 | 3166734-8.patch | 29.66 KB | quietone |
Issue fork commerce_migrate-3166734
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
quietone commentedThis adds a test of migrating nodes including testing field values. A field value test is also added to ProductTest and ProductVariationTest
Comment #4
quietone commentedI thought I ran ProductTest locally. Anyway, in order to test field value it needs to run more migrations, so those are added. I also added a helper method to Commerce1TestBase that creates dummy files.
Comment #5
quietone commentedJust cleaning up.
Comment #6
quietone commentedNow add assertions for non-product terms to the new NodeTest. I think that covers everything in the IS.
Anything more to do here?
Comment #7
quietone commentedComment #10
quietone commentedReverted because tests fail with postgresql.
Comment #11
quietone commentedI don't think the order of the field value matters, so just change the test to order the values by target_id.
Comment #12
quietone commentedI am testing with postgres locally and the tests pass.
Comment #13
quietone commentedSome improvements but still can't get a failure locally.
Comment #15
quietone commentedThat is better. I think this is ready to commit.
Comment #17
quietone commented