Given /^that HTTP requests to (.*?) will respond with:$/


目录

Mock HTTP requests to a given URL.


Usage

Scenario: My example scenario
  Given that HTTP requests to https://api.github.com/repos/wp-cli/wp-cli/releases?per_page=100 will respond with:
    """
    HTTP/1.1 200
    Content-Type: application/json

    { "foo": "bar" }
    """

Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements, please submit a pull request.



版本号 #2
由 cocobook-sync 创建于 2026-10-28 11:01:44 UTC
由 cocobook-sync 更新于 2026-10-28 11:36:04 UTC