Expand Drupal6FieldInstance testing with a float field.
We found that some tests were failing because the test mixed decimals and float field types. We actually switched the test to decimal for getting green, but it will be awesome to add coverage for float fields migration.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | interdiff.txt | 715 bytes | benjy |
| #7 | 2226395-7.patch | 4.62 KB | benjy |
| #5 | 2226395-5.patch | 4.7 KB | benjy |
Comments
Comment #1
David Hernández commentedI'm working on this.
Comment #2
David Hernández commentedI can't add this as the tests to do it are failing:
Fatal error: Call to a member function getLabel() on a non-object in core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Tests/d6/MigrateFieldInstanceTest.php on line 79The entity is coming in as NULL and I have no idea of what's going on. I can continue working on this, but I would need that someone points me in the right direction.
Comment #3
benjy commentedI've fixed MigrateFieldInstanceTest in a2587fb so this should be good to work on now.
Comment #4
ultimikeComment #5
benjy commentedThis was a little strange, the dumps were mixed up. We had a decimal field but a float field instance. I fixed that up and added a float so we have one of each. I also added another test in the MigrateFieldInstance test but that wouldn't really have caught the issue since we were hand creating the field in the setup with the right type.
This issue would however would be caught by the Drupal6Migrate test which was added after this was fixed.
Comment #7
benjy commentedMessed up the dump.
Comment #8
chx commented> We had a decimal field but a float field instance.
NICE. Thanks for catching that.
Comment #9
penyaskitoComment #10
webchickCommitted and pushed to 8.x. Thanks!