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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "shopware-phpunit" with this command: npx skills add friendsofshopware/agent-skills/friendsofshopware-agent-skills-shopware-phpunit

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

PriorityCategoryPrefixDescription
CRITICALTest Setupsetup-Kernel bootstrap, base test classes, PHPUnit configuration
HIGHIntegration Testingintegration-Repository tests, service tests, database transactions
HIGHAPI Testingapi-Store API and Admin API endpoint testing
MEDIUMMockingmock-Service mocking, dependency injection in tests
MEDIUMDatadata-Test data creation, fixtures, cleanup
LOWPerformanceperf-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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

shopware-admin-crud-module

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

Repository Source
23K85.8K
vercel
Automation

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

Repository Source
23K60.2K
vercel