Skip to content

Add PHP unit test coverage for duotone block supports #48346

@getdave

Description

@getdave

As evidenced by this PR
the PHP side of the duotone block supports is potentially brittle and prone to regressions.

We should break gutenberg_render_duotone_support into smaller units and add tests for the results to provide more confidence. This should also make the code easier to reason about.


@draganescu @scruffian Thanks for catching custom color breakage. I've reinstated some code I accidentally removed during a refactor. Points to this code being brittle and requiring tests.

Originally posted by @getdave in #48318 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions