ActivityPub Testing Patterns
PHPUnit and Playwright testing patterns, commands, and debugging flags for the WordPress ActivityPub plugin.
Dev & CodingIntermediate★ 324⑂ 46AI score 6/10Last updated: Jul 3, 2026
What it does
- Gives Claude a reference for writing tests, debugging failures, and setting up coverage in the WordPress ActivityPub plugin.
- Provides a
WP_UnitTestCaseclass skeleton withset_up/tear_downand@groupannotations. - Includes Playwright E2E samples for the admin settings page and WebFinger discovery.
- Lists run commands (
npm run env-test,npm run test:e2e,npm run test:unit) and debug flags such as--filter,--verbose,--stop-on-failure.
Who it's for
- PHP developers contributing to the WordPress ActivityPub plugin or similar wp-env based plugins.
- Teams that need E2E checks for Fediverse/ActivityPub federation features.
- WordPress devs mixing PHPUnit and Playwright in one repo.
Examples
- "Add a test for the Follow handler" → scaffolds a test class in the documented structure.
- "My WebFinger E2E test fails" → rewrites it using the
page.request.getpattern and points at the assertions. - "Run only one test method" → suggests
npm run env-test -- --filter=test_specific_method --stop-on-failure.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/Microck/ordinary-claude-skills/HEAD/skills_all/activitypub-testing/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills_all/activitypub-testing folder from the GitHub repo Microck/ordinary-claude-skills into my ~/.claude/skills/activitypub-testing/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/Microck/ordinary-claude-skills.git /tmp/ocs && mkdir -p ~/.claude/skills && cp -r /tmp/ocs/skills_all/activitypub-testing ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/Microck/ordinary-claude-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r ordinary-claude-skills/skills_all/activitypub-testing ~/.claude/skills/ - Recommended: edit or remove the
../../../tests/README.mdlinks insideSKILL.md, since they point outside the skill directory. - Restart Claude Code and ask it to "write an ActivityPub PHPUnit test" to confirm the skill loads.
View source on GitHub ↗License: NOASSERTION