Skip to content

Add recipe for macpaw/behat-http-mock-context bundle #1804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
mock_http_client:
class: ExtendedMockHttpClient\ExtendedMockHttpClient
arguments:
- '%env(YOUR_SERVICE_URL)%'
tags: ['mock.http_client']

BehatHttpMockContext\Collection\ExtendedMockHttpClientCollection:
arguments:
- !tagged_iterator mock.http_client
17 changes: 17 additions & 0 deletions macpaw/behat-http-mock-context/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"bundles": {
"BehatHttpMockContext\\BehatHttpMockContextBundle": ["test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"post-install-output": [
"<fg=blue>Read</> the documentation at <comment>https://github.com/MacPaw/behat-http-mock-context</comment>",
"BehatHttpMockContextBundle is registered in the test environment.",
"<fg=red>Add</> this to your behat.yml to finish setup:",
"...",
"contexts:",
" - BehatHttpMockContext\\Context\\MockContext",
"..."
]
}
Loading