Skip to content

Restore configless managed PHPUnit discovery#1944

Merged
chubes4 merged 1 commit into
mainfrom
fix/1943-configless-phpunit-profile
Jul 21, 2026
Merged

Restore configless managed PHPUnit discovery#1944
chubes4 merged 1 commit into
mainfrom
fix/1943-configless-phpunit-profile

Conversation

@chubes4

@chubes4 chubes4 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • let implicit plugin PHPUnit profiles use managed discovery defaults when neither default XML file exists
  • keep explicit plugin and WordPress core configuration failures fail-closed
  • execute generated PHP discovery against a real configless WP_UnitTestCase fixture

Root cause

PR #1940 required the implicit phpunit.xml.dist path to be readable, but the recipe builder only supplies that path and never materializes the file. Configless plugin suites therefore failed before discovery.

Verification

  • npm run build
  • npx tsx tests/phpunit-project-autoload.test.ts
  • npm run test:phpunit-runtime-failure-diagnostics
  • npm run test:playground-phpunit-bootstrap-failure-integration
  • npm run test:playground-phpunit-readonly-cache-integration
  • git diff --check

Closes #1943.
Downstream proof tracker: Extra-Chill/homeboy-extensions#2343

AI assistance

  • AI assistance: Yes
  • Tool: OpenAI GPT-5.6 Sol with OpenCode
  • Used for: cross-run diagnosis, implementation, regression coverage, and verification.

@chubes4
chubes4 merged commit c3e4a5a into main Jul 21, 2026
4 checks passed
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.

Implicit PHPUnit profiles reject configless plugin suites

1 participant