Skip to content

Commit a3f9c16

Browse files
committed
Rename step
1 parent 0a91192 commit a3f9c16

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

features/http-mocking.feature

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Feature: HTTP request mocking
22

33
Scenario: Mock HTTP request in WP-CLI
4-
Given an empty directory
5-
And an HTTP request to https://api.github.com/repos/wp-cli/wp-cli/releases?per_page=100 with this response:
4+
Given that HTTP requests to https://api.github.com/repos/wp-cli/wp-cli/releases?per_page=100 will respond with:
65
"""
76
HTTP/1.1 200
87
Content-Type: application/json
@@ -85,7 +84,7 @@ Feature: HTTP request mocking
8584

8685
Scenario: Mock HTTP request in WordPress
8786
Given a WP install
88-
And an HTTP request to https://api.wordpress.org/core/version-check/1.7/ with this response:
87+
And that HTTP requests to https://api.wordpress.org/core/version-check/1.7/ will respond with:
8988
"""
9089
HTTP/1.1 200
9190
Content-Type: application/json

src/Context/GivenStepDefinitions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function given_string_replaced_with_string_in_a_specific_file( $search, $
8282
}
8383

8484
/**
85-
* @Given /^an? HTTP request to (.*?) with this response:$/
85+
* @Given /^that HTTP requests to (.*?) will respond with:$/
8686
*/
8787
public function given_a_request_to_a_url_respond_with_file( $url_or_pattern, PyStringNode $content ) {
8888
if ( ! isset( $this->variables['RUN_DIR'] ) ) {

0 commit comments

Comments
 (0)