mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-18 06:11:28 +08:00
Fix single request tests
This commit is contained in:
parent
7b5c5f01f9
commit
0b2b81e862
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ Feature: Profile arbitary file execution
|
|||
And a http-request.php file:
|
||||
"""
|
||||
<?php
|
||||
wp_remote_get( "http://apple.com" );
|
||||
wp_remote_get( "https://www.apple.com/" );
|
||||
"""
|
||||
|
||||
When I run `wp profile eval-file http-request.php --fields=request_count`
|
||||
|
|
|
@ -18,7 +18,7 @@ Feature: Profile arbitary code execution
|
|||
Scenario: Profile a function that makes one HTTP request
|
||||
Given a WP install
|
||||
|
||||
When I run `wp profile eval 'wp_remote_get( "http://apple.com" );' --fields=request_count`
|
||||
When I run `wp profile eval 'wp_remote_get( "https://www.apple.com/" );' --fields=request_count`
|
||||
Then STDOUT should be a table containing rows:
|
||||
| request_count |
|
||||
| 1 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue