friendsofshopware/agent-skills102 installs
shopware-phpunit
Best practices for writing PHPUnit tests in Shopware 6 projects, including integration tests, unit tests, and common testing patterns for plugins and apps.
How do I install this agent skill?
npx skills add https://github.com/friendsofshopware/agent-skills --skill shopware-phpunitIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a collection of best practices and reference materials for writing PHPUnit tests in Shopware 6 projects. It contains only documentation and code examples, with no executable scripts or malicious patterns detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
14/14 files flagged
What does this agent skill do?
Shopware PHPUnit Best Practices
When to Apply
- Writing new PHPUnit tests for a Shopware 6 plugin or app
- Setting up test infrastructure for a Shopware project
- Testing repositories, services, commands, or event subscribers
- Writing integration tests that require the Shopware kernel
- Testing Storefront controllers or Store API / Admin API routes
- Debugging failing tests in a Shopware context
Rule Categories by Priority
| 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 |
How to Use
Read relevant reference files from the references/ directory based on the task at hand. Files are prefixed by category for easy discovery.
External References
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/friendsofshopware/agent-skills/shopware-phpunit">View shopware-phpunit on skillZs</a>