Module Test Create
module_test_createGenerates PHPUnit/Kernel test skeletons for Drupal modules, creating the test class file with specified methods so developers can start writing unit tests immediately.
Instructions
Create a PHPUnit/Kernel test skeleton.
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": {
"machine_name": "<machine_name>",
"test_name": "<test_name>"
},
"name": "module_test_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| test_name | Yes | ||
| test_type | No | KernelTest | |
| class_name | No | ||
| machine_name | Yes | ||
| test_methods | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||