Skip to content

test: harden WordPress boot contracts for plugin/admin paths#21

Merged
bradvin merged 3 commits into
developfrom
feat/issue-7-wp-stub-contracts
Feb 22, 2026
Merged

test: harden WordPress boot contracts for plugin/admin paths#21
bradvin merged 3 commits into
developfrom
feat/issue-7-wp-stub-contracts

Conversation

@foo-bender
Copy link
Copy Markdown
Collaborator

@foo-bender foo-bender commented Feb 21, 2026

Summary

  • enforce explicit WordPress API contracts for plugin boot, plugin activation, and admin boot paths
  • fail fast with actionable RuntimeException diagnostics when required APIs are missing
  • add contract tests that verify stubs satisfy boot contracts and that missing APIs fail with explicit messages
  • document boot-path WordPress stub coverage in docs/wp-stub-contracts.md

Validation

  • composer test ✅ (85 tests, 409 assertions)
  • composer lint
  • JS lint not run: no JS files changed, and CI runs npm run lint:changed:js only when JS changes are present

Fixes #7

@bradvin bradvin changed the base branch from main to develop February 22, 2026 17:31
@bradvin bradvin merged commit db3b369 into develop Feb 22, 2026
2 checks passed
@bradvin bradvin deleted the feat/issue-7-wp-stub-contracts branch February 27, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test determinism: strengthen WordPress stubs/contracts for boot paths

2 participants