GET
Namespace mmwp/v1, route /self-test/cases
Permission: Callback check_permission().
Arguments of /wp-json/mmwp/v1/self-test/cases | Argument | Type | Required | Default | Description |
ids | array | | [] | Case ids from the registered manifests. Empty for every case. |
plugin | string | | '' | Restrict to the cases of one registered plugin slug. |
Registered in src/Surfaces/Rest.php#L87↗(opens in a new tab).
GET
Namespace mmwp/v1, route /self-test/preview
Permission: Callback check_permission().
Arguments of /wp-json/mmwp/v1/self-test/preview | Argument | Type | Required | Default | Description |
ids | array | | [] | Case ids from the registered manifests. Empty for every case. |
plugin | string | | '' | Restrict to the cases of one registered plugin slug. |
Registered in src/Surfaces/Rest.php#L94↗(opens in a new tab).
POST
Namespace mmwp/v1, route /self-test/run
Permission: Callback check_permission().
Arguments of /wp-json/mmwp/v1/self-test/run | Argument | Type | Required | Default | Description |
ids | array | | [] | Case ids from the registered manifests. Empty for every case. |
plugin | string | | '' | Restrict to the cases of one registered plugin slug. |
cleanup | boolean | | false | Remove the test data right after each case instead of keeping it for "Remove test data". |
layer | string | | '' | Run only the cases declaring this layer (rest, cli, ability, core, browser). |
Registered in src/Surfaces/Rest.php#L101↗(opens in a new tab).
POST
Namespace mmwp/v1, route /self-test/cleanup
Permission: Callback check_permission().
Arguments of /wp-json/mmwp/v1/self-test/cleanup | Argument | Type | Required | Default | Description |
ids | array | | [] | Case ids from the registered manifests. Empty for every case. |
plugin | string | | '' | Restrict to the cases of one registered plugin slug. |
Registered in src/Surfaces/Rest.php#L125↗(opens in a new tab).
GET
Namespace mmwp/v1, route /self-test/report
Permission: Callback check_permission().
Registered in src/Surfaces/Rest.php#L132↗(opens in a new tab).
GET
Namespace mmwp/v1, route /self-test/admin-menu
Permission: Callback check_permission().
Registered in src/Surfaces/Rest.php#L138↗(opens in a new tab).
POST
Namespace mmwp/v1, route /self-test/browser-login
Permission: Permission of the login exchange: the token is the credential. Callback check_login_token().
Arguments of /wp-json/mmwp/v1/self-test/browser-login | Argument | Type | Required | Default | Description |
token | string | Yes | | Single-use login token issued by the runner for the browser layer. |
Registered in src/Surfaces/Rest.php#L144↗(opens in a new tab).