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

Command icon 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

szeidler created an issue. See original summary.

szeidler’s picture

Status: Active » Needs review

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.