mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:38:51 +08:00
32 lines
914 B
Gherkin
32 lines
914 B
Gherkin
Feature: Profile the template render stage
|
|
|
|
Scenario: Profiler loads a summary table
|
|
Given a WP install
|
|
|
|
When I run `wp profile stage --fields=stage`
|
|
Then STDOUT should be a table containing rows:
|
|
| stage |
|
|
| bootstrap |
|
|
| main_query |
|
|
| template |
|
|
|
|
Scenario: Profiler loads a table with the correct hooks
|
|
Given a WP install
|
|
|
|
When I run `wp profile stage template --fields=hook`
|
|
Then STDOUT should be a table containing rows:
|
|
| hook |
|
|
| |
|
|
| template_redirect |
|
|
| |
|
|
| template_include |
|
|
| |
|
|
| wp_head |
|
|
| |
|
|
| loop_start |
|
|
| |
|
|
| loop_end |
|
|
| |
|
|
| wp_footer |
|
|
| |
|
|
| total |
|