mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
45 lines
1.8 KiB
JSON
45 lines
1.8 KiB
JSON
{
|
|
"manifests": {
|
|
"macpaw/behat-http-mock-context": {
|
|
"manifest": {
|
|
"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",
|
|
"..."
|
|
]
|
|
},
|
|
"files": {
|
|
"config/packages/test/behat_http_mock_context.yaml": {
|
|
"contents": [
|
|
"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",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "cfcb015889b21e0db6f1b49b8448244255598dc1"
|
|
}
|
|
}
|
|
}
|