/magento2-commerce:magento-testingfrom magento2-commerce
Writes tests for Magento 2 modules: PHPUnit unit and integration tests, MFTF functional browser tests, and API tests. Includes mocking patterns, fixtures, and static analysis checks.
Ships in magento2-commerce. 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.
None: SKILL.md is the whole skill.
Fetch live docs:
site:developer.adobe.com commerce testing for testing overviewhttps://developer.adobe.com/commerce/testing/functional-testing-framework/ for MFTF guidesite:developer.adobe.com commerce php development test for unit/integration test patternsPurpose: Test individual classes in isolation.
Test/Unit/ within the moduledev/tests/unit/phpunit.xml.distvendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/VendorName/ModuleName/Test/Unit/createMock()Purpose: Test module interactions with the Magento framework.
Test/Integration/ or dev/tests/integration/dev/tests/integration/phpunit.xml.distvendor/bin/phpunit -c dev/tests/integration/phpunit.xml.dist@magentoDbIsolation enabled — rolls back DB changes after each test@magentoAppArea — sets the application area (frontend, adminhtml)@magentoConfigFixture — sets config values for the test@magentoDataFixture — loads test dataPurpose: End-to-end browser tests.
Test/Mftf/Test/, Test/Mftf/ActionGroup/, Test/Mftf/Page/, Test/Mftf/Section/vendor/bin/mftf run:test <TestName>Purpose: Test REST and SOAP API endpoints.
dev/tests/api-functional/dev/tests/api-functional/phpunit_rest.xml.distPurpose: Code quality and standards.
dev/tests/static/vendor/bin/phpunit -c dev/tests/static/phpunit.xml.dist$this->createMock(ClassName::class) for dependencies$mock->expects($this->once())->method('getById')->willReturn($entity)ObjectManagerHelper from test frameworkIntegration tests use fixtures to set up test state:
@magentoDataFixture annotation points to a fixture file@magentoDbIsolation rolls back after testUnit test plugin classes independently — call the plugin method with a mock subject and verify behavior.
Unit test observer's execute() method with a mocked Observer/Event object.
@magentoDbIsolation to prevent test pollutiontestSaveThrowsExceptionWhenNameIsEmpty()Fetch the testing documentation for exact annotations, fixture patterns, and MFTF XML schema before writing tests.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin magento2-commerce19 skills in this plugin
/magento-admin-uiBuild Magento 2 admin interfaces — UI component grids, forms, system configuration, ACL, and admin controllers. Use when creating admin panels, data grids, edit forms, or system settings./magento-apiBuild Magento 2 REST and GraphQL APIs — webapi.xml, schema.graphqls, resolvers, authentication, and ACL. Use when creating custom API endpoints, extending the GraphQL schema, or integrating external systems./magento-catalogWork with Magento 2 catalog — product types, categories, attributes, indexing, and search integration. Use when building catalog features, customizing product types, or working with the catalog architecture./magento-checkoutCustomize Magento 2 checkout — payment methods, shipping carriers, totals collectors, and checkout UI. Use when building custom payment/shipping integrations or modifying the checkout flow./magento-deployDeploy Magento 2 — deployment modes, static content deployment, DI compilation, CLI commands, zero-downtime strategies, and CI/CD pipeline setup. Use when preparing for production deployment or building deployment automation./magento-diConfigure Magento 2 dependency injection — di.xml, types, virtual types, preferences, argument replacement, and Object Manager. Use when wiring dependencies, creating class variations, or configuring module integrations.Other plugins' skills for the same job