Fix single request tests

This commit is contained in:
Alain Schlesser 2021-04-19 14:40:40 +01:00
parent 7b5c5f01f9
commit 0b2b81e862
2 changed files with 2 additions and 2 deletions

View file

@ -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`

View file

@ -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 |