Skip to content

Load schema address helpers in the PHPUnit bootstrap #50

Description

@chubes4

Problem

The current main PHPUnit suite has five baseline errors because tests/bootstrap.php loads inc/schema/schema-event.php without loading the module that defines ExtraChill\\SEO\\Schema\\ec_seo_build_postal_address().

Observed with composer test on a clean issue #48 worktree:

  • 26 tests, 60 assertions, 5 errors.
  • Failures are in SchemaEventBuildTest and SchemaEventIntegrationTest.
  • All terminate at inc/schema/schema-event.php:283 with undefined ec_seo_build_postal_address().

Required outcome

Make the lightweight test bootstrap load the same schema helper dependency needed by schema-event.php, preserving production load order and avoiding duplicate test-only implementations.

Acceptance

composer test passes on an otherwise clean checkout, and the bootstrap still remains a lightweight non-WordPress unit environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions