[DOCS] Running PHPUnit tests using the Playground CLI#3487
Open
[DOCS] Running PHPUnit tests using the Playground CLI#3487
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new documentation guide explaining how to run PHPUnit for WordPress plugins/themes using the Playground CLI, and wires it into the guides navigation.
Changes:
- Adds a new “Running PHPUnit with the Playground CLI” guide.
- Adds the guide to the Guides index page.
- Adds the guide to the docs sidebar navigation.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/docs/site/sidebars.js | Adds the new PHPUnit guide to the sidebar list. |
| packages/docs/site/docs/main/guides/phpunit-testing.md | New guide describing how to run PHPUnit via the Playground CLI (with version selection). |
| packages/docs/site/docs/main/guides/index.md | Adds a new entry pointing to the PHPUnit guide. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Move the --auto-mount explanation closer to its first use and add an explicit --mount example for users who prefer manual control. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Motivation for the change, related issues
The Playground CLI's
phpsubcommand makes it easy to run PHPUnit for plugins and themes without a local database, but there's no guide documenting this workflow.Implementation details
packages/docs/site/docs/main/guides/phpunit-testing.mdcovering:npx @wp-playground/cli@latest phpsidebars.js(between the programmatic CLI guide and the E2E testing guide)Testing Instructions
npm run dev:docs