mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-20 06:30:56 +08:00
GH#36 Added functional test
This commit is contained in:
parent
7c8a48b74d
commit
60bd8d5cd0
1 changed files with 19 additions and 0 deletions
|
@ -65,6 +65,25 @@ Feature: Profile the template render stage
|
|||
| wp_footer:after |
|
||||
| total (13) |
|
||||
|
||||
When I run `wp profile stage template --fields=hook --orderby=hook --order=DESC`
|
||||
Then STDOUT should be a table containing rows:
|
||||
| hook |
|
||||
| wp_head:before |
|
||||
| wp_head |
|
||||
| wp_footer:before |
|
||||
| wp_footer:after |
|
||||
| wp_footer |
|
||||
| template_redirect:before |
|
||||
| template_redirect |
|
||||
| template_include:before |
|
||||
| template_include |
|
||||
| loop_start:before |
|
||||
| loop_start |
|
||||
| loop_end:before |
|
||||
| loop_end |
|
||||
| total (13) |
|
||||
|
||||
|
||||
Scenario: Use --all flag to profile all stages
|
||||
Given a WP install
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue