mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-18 06:11:48 +08:00
Ensure we only register specific methods as commands
This commit is contained in:
parent
9dbc52727c
commit
a2e8573328
1 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,19 @@
|
|||
Feature: Basic profile usage
|
||||
|
||||
Scenario: Assert available commands
|
||||
Given a WP install
|
||||
|
||||
When I run `wp profile`
|
||||
Then STDOUT should be:
|
||||
"""
|
||||
usage: wp profile eval <php-code> [--fields=<fields>] [--format=<format>]
|
||||
or: wp profile eval-file <file> [--fields=<fields>] [--format=<format>]
|
||||
or: wp profile hook <hook> [--url=<url>] [--fields=<fields>] [--format=<format>]
|
||||
or: wp profile stage [<stage>] [--all] [--url=<url>] [--fields=<fields>] [--format=<format>]
|
||||
|
||||
See 'wp help profile <command>' for more information on a specific command.
|
||||
"""
|
||||
|
||||
Scenario: Error when SAVEQUERIES is defined to false
|
||||
Given an empty directory
|
||||
And WP files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue