make it easier to mock plugin discovery in tests

Created on 24 September 2024, 3 months ago

Problem/Motivation

Mocking plugin discovery is really painful -- see ReflectionFactoryTest and MigrateFieldPluginManagerTest for instance.

This is something that needs to be tested fairly often though -- things like:

- testing that the plugin manager throws exceptions for certain badly-formed plugin definitions
- testing for deprecations of things in plugin definitions

It would be nice if this were easier -- either by making changes in the plugin system, or providing common helper code for tests to use.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component

plugin system

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024