feat: add macpaw/behat-http-mock-context configuration (#1804)

This commit is contained in:
Ihor Roik
2025-06-16 23:51:42 +04:00
committed by GitHub
parent f23f9a82b3
commit a72b1532e4
2 changed files with 27 additions and 0 deletions
@@ -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",
"..."
]
}