In order to test the update path to core Media being developed over in #2880334: Add update path of media_entity config changes from 1.x to core media module, we'll need a database fixture to update from.

Quoting from #2880334-34: Add update path of media_entity config changes from 1.x to core media module, this is what we want our fixture to have, at a minimum:

  • File and image media types and items
  • Articles containing this media items
  • A homepage view to show the article

Let's make this happen.

CommentFileSizeAuthor
#3 2915251-3.patch184.68 KBphenaproxima

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

phenaproxima’s picture

Status: Active » Needs review
StatusFileSize
new184.68 KB

Here is a fixture with:

  • Drupal 8.4.0 and Media Entity 1.x installed
  • Three media types: file, image, and generic
  • Three media items of each type
  • An Article content type with only one field, which references media items
  • Three articles which reference the various media items
  • A simple front page view which shows the ten latest articles, fully rendered (which displays links to the referenced media items)
chr.fritsch’s picture

Status: Needs review » Reviewed & tested by the community

I think it's a good starting point for writing the update path tests.

  • phenaproxima authored fe1ee96 on 8.x-2.x
    Issue #2915251 by phenaproxima, chr.fritsch: Create database fixture for...
phenaproxima’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.