Add tests for the migration process plugin

Created on 19 September 2023, over 1 year ago

Problem/Motivation

It would be cool to have some basic testing verifying that the module works as expected. This will make the module more solid for changes.

Steps to reproduce

Proposed resolution

Implement a Kernel Tests, that simulates the migration of two entities with the default_if_no_stored_value process plugin.

  1. Run the migration
  2. Verify the default value is used
  3. Manually overwrite the field for one of the entities and save it
  4. Run the migration with update mode
  5. Verify that one entity still uses the old default title, but the other one uses the manually adjusted one

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany szeidler Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @szeidler
  • @szeidler opened merge request.
  • Status changed to Needs review over 1 year ago
  • 🇩🇪Germany szeidler Berlin

    Here's an implemented KernelTest that runs those test migrations, one for a text field on a node, one for a base property on the user entity.

Production build 0.71.5 2024