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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"className": "<className>"
},
"name": "magento_find_test"
}
}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" |