Skip to content

Keep WordPress eval contracts portable across Anima and Anima LT #565

Description

@georgeolaru

Problem

The full WordPress eval-file contract pass fails when the generated anima-lt sibling is active even though the runtime behavior is current.

Root cause

Four test fixtures drifted from production contracts:

  • the intro-animation test reloads the source integration after the active Anima LT theme already defined those functions;
  • the post-content layout fixture hardcodes the commercial anima stylesheet slug even though runtime normalization correctly uses get_stylesheet();
  • the Site Frame test still expects the controls at the end although the UI intentionally places them immediately before Fancy Titles;
  • the contextual-colors test still expects the pre-rename title and description.

Expected

  • The contracts run with either anima or generated anima-lt active.
  • Fixtures assert current user-facing behavior and current control ordering.
  • No production-only test hooks or mocks are introduced.
  • The corrected contracts fail against the stale assumptions and pass against the current implementation.

RED evidence

The 2026-07-14 release pass reproduced all four failures through WP-CLI on style-manager.local with Anima LT 2.0.43 active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions