mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:38:51 +08:00
Update test for true output representation
This commit is contained in:
parent
5953df52c2
commit
757b3bf38a
1 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@ Feature: Profile a specific hook
|
|||
Scenario: Profile a hook without any callbacks
|
||||
Given a WP install
|
||||
|
||||
When I run `wp profile --hook=setup_theme`
|
||||
Then STDOUT should be empty
|
||||
When I run `wp profile --hook=setup_theme --fields=callback`
|
||||
Then STDOUT should be a table containing rows:
|
||||
| callback |
|
||||
| total |
|
||||
And STDERR should be empty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue