magento_find_test
Identify PHPUnit test files for a PHP class or method by searching Test/ directories, @covers annotations, and mock references to support refactoring.
Instructions
Find PHPUnit test files for a given PHP class or method. Searches Test/ directories for test classes, @covers annotations, mock references, and class name matches. Helps identify test coverage for refactoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| className | Yes | PHP class name to find tests for. Examples: "ProductRepository", "CartManagement", "OrderService" | |
| methodName | No | Optional method name to narrow test search. Examples: "save", "getById", "execute" |