mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 11:06:41 +03:00
feat: add macpaw/behat-http-mock-context configuration (#1804)
This commit is contained in:
@@ -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
|
||||
@@ -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",
|
||||
"..."
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user