friendsofshopware/agent-skills · Archived

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.

First seen Feb 20, 2026

Installation

$ npx skills add friendsofshopware/agent-skills --skill shopware-phpunit

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from friendsofshopware/agent-skills.

npx skills add friendsofshopware/agent-skills

Browse all from friendsofshopware/agent-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 12
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0
LicenseMIT
More metadata
author
FriendsOfShopware
version
1.0.0
organization
FriendsOfShopware
date
February 2026
abstract
Comprehensive guide for writing effective PHPUnit tests in Shopware 6, covering integration test setup, repository testing, storefront and API testing, mocking services, and common pitfalls.

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,912 B
  • docs SUMMARY.md 179 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 95 installs

SKILL.md

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