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.
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") |