agentsclimarketplace

Shopware phpunit

Skill FriendsOfShopware/agent-skills/skills/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.From its SKILL.md

Install
npx -y skills add FriendsOfShopware/agent-skills --skill shopware-phpunit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.9 KB, as published. Nobody here has run it

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

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.