Best practices for writing PHPUnit tests in Shopware 6 projects, covering integration tests, repository testing, storefront/API testing, mocking, and test setup.
Ships in shopware-phpunit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Priority | Category | Prefix | Description |
|---|---|---|---|
| CRITICAL | Test Setup | setup- | Kernel bootstrap, base test classes, PHPUnit configuration |
| HIGH | Integration Testing | integration- | Repository tests, service tests, database transactions |
| HIGH | API Testing | api- | Store API and Admin API endpoint testing |
| MEDIUM | Mocking | mock- | Service mocking, dependency injection in tests |
| MEDIUM | Data | data- | Test data creation, fixtures, cleanup |
| LOW | Performance | perf- | Test execution speed, parallel testing |
Read relevant reference files from the references/ directory based on the task at hand. Files are prefixed by category for easy discovery.
references/_sections.md (opens in a new tab)references/_template.md (opens in a new tab)references/api-store-api-testing.md (opens in a new tab)references/data-product-builder.md (opens in a new tab)references/data-test-fixtures.md (opens in a new tab)references/integration-repository-testing.md (opens in a new tab)references/mock-service-decoration.md (opens in a new tab)references/mock-static-entity-repository.md (opens in a new tab)references/mock-static-system-config-service.md (opens in a new tab)references/setup-base-test-class.md (opens in a new tab)references/setup-kernel-bootstrap.md (opens in a new tab)references/setup-prefer-assertsame.md (opens in a new tab)references/setup-prefer-expect-exception-object.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/shopware-phpunit:shopware-phpunitfrom shopware-phpunit
npx claudepluginhub friendsofshopware/agent-skills --plugin shopware-phpunitOther plugins' skills for the same job