scaffold_test_suite
Generate a PHPUnit test suite for WPZylos plugins: bootstrap file, base test case, sample unit test, and phpunit.xml configuration. Requires root namespace and plugin slug.
Instructions
Generate a PHPUnit test suite for a WPZylos plugin: bootstrap file, base test case, sample unit test, phpunit.xml configuration.
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": {
"rootNamespace": "<rootNamespace>",
"pluginSlug": "<pluginSlug>"
},
"name": "scaffold_test_suite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| pluginSlug | Yes | Plugin slug | |
| testType | No | Test type (default: both) | |
| targetClass | No | Class to generate tests for (e.g., "App\Services\OrderService") |