- πΈπ°Slovakia poker10
I think that these test errors are caused by the Migrate module, not D7 core.
In
wine.install.inc
there is a functionmigrate_example_wine_fields()
which defines display modes:'display' => array( 'full' => array( 'label' => 'hidden', 'type' => 'image__large', 'settings' => array(), 'weight' => -1, ), 'teaser' => array( 'label' => 'hidden', 'type' => 'image_link_content__medium', 'settings' => array(), 'weight' => -1, ), 'rss' => array( 'label' => 'hidden', 'type' => 'image__large', 'settings' => array(), 'weight' => -1, ), 'search_index' => array( 'label' => 'hidden', 'type' => 'image__large', 'settings' => array(), 'weight' => -1, ), 'search_results' => array( 'label' => 'hidden', 'type' => 'image__large', 'settings' => array(), 'weight' => -1, ), ),
The problem seems to be in types definition in all of these display modes.
This is not valid:
'type' => 'image__large',
It should be:
'type' => 'image', 'settings' => array('image_style' => 'large', 'image_link' => ''),
(see: https://git.drupalcode.org/project/drupal/-/blob/7.x/profiles/standard/standard.install#L381)
And also this is not valid:
'type' => 'image_link_content__medium',
It should be:
'type' => 'image', 'settings' => array('image_style' => 'medium', 'image_link' => 'content'),
(see: https://git.drupalcode.org/project/drupal/-/blob/7.x/profiles/standard/standard.install#L387)
---------
And the same problem is in the
beer.install.inc
file in themigrate_example_beer_image()
function.If these definitions are changed, the warnings seems to be gone.
- π¨π¦Canada joseph.olstad
Thanks @poker10 , I've made a patch using your suggestions above.
- Status changed to Needs review
over 1 year ago 3:25am 27 April 2023 - last update
over 1 year ago 14 pass - last update
over 1 year ago 14 pass - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 14 pass -
joseph.olstad β
committed 6fe04bd3 on 7.x-2.x authored by
poker10 β
Issue #3333649 by joseph.olstad, poker10: Migrate.MigrateCommentUnitTest...
-
joseph.olstad β
committed 6fe04bd3 on 7.x-2.x authored by
poker10 β
- Status changed to Fixed
over 1 year ago 3:30am 27 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.