Load PHPUnit dependencies after database install#1868
Merged
Conversation
Collaborator
Author
|
Merge dependency: #1869 fixes the pre-existing |
This was referenced Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugins_loadedcallbacks registered during post-install loadingextra_pluginsplusdependencyMountscontractWhy
WP Codebox previously forced validation dependencies into two broken choices: activate during recipe setup before
wptests_*tables exist, or mount inactive and never load them during managed PHPUnit execution.This surfaced after Extra-Chill/homeboy-extensions#2294 delegated its test runner to the public WP Codebox recipe contract.
Failure evidence: https://github.com/Extra-Chill/homeboy-extensions/actions/runs/29646694037/job/88086037491
Downstream repair: Extra-Chill/homeboy-extensions#2295
How to test
npm installfrom a fresh checkout.npm run build.npx tsx tests/phpunit-project-autoload.test.ts.npm run test:playground-phpunit-readonly-cache-integration.bash wordpress/scripts/test/playground-db-activation-smoke.shagainst this branch.Compatibility
The canonical caller contract is
inputs.extra_pluginswith dependency entries set toactivate: false, plus their sandbox plugin directories independencyMounts. Dependencies now activate after managed PHPUnit installation and before tests. Newly registered dependencyplugins_loadedcallbacks run exactly once. No legacy lifecycle or Homeboy-specific behavior is introduced.AI assistance